]> git.saurik.com Git - apple/security.git/blob - xcscripts/install-test-framework.sh
Security-58286.251.4.tar.gz
[apple/security.git] / xcscripts / install-test-framework.sh
1 #!/bin/sh
2
3 framework="$1"
4
5 found=no
6
7 for a in ${TEST_FRAMEWORK_SEARCH_PATHS}; do
8 if test -d "${a}/${framework}" ; then
9 dst="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
10
11 mkdir -p "{dst}" || { echo "mkdir failed with: $?" ; exit 1; }
12 ditto "${a}/${framework}" "${dst}/${framework}" || { echo "ditto failed with: $?" ; exit 1; }
13 xcrun codesign -s - -f "${dst}/${framework}" || { echo "codesign failed with: $?" ; exit 1; }
14
15 found=yes
16 break
17 fi
18 done
19
20 test "X${found}" != "Xyes" && exit 1
21
22 exit 0