]>
git.saurik.com Git - apple/security.git/blob - regressions/test/run_tests.sh
6 # Created by Fabrice Gautier on 8/26/10.
7 # Copyright 2010 Apple, Inc. All rights reserved.
10 # Run a command line tool on the sim or the device
12 CMD
=SecurityTests.app
/SecurityTests
14 if [ "${PLATFORM_NAME}" == "iphoneos" ]; then
16 RSYNC_URL
=rsync
://root@localhost
:10873/root
${INSTALL_DIR}
17 #copy Security Framework and testrunner program to the device, to /tmp
18 #This will not override the existing security Framework on your device (in /System/Library/Framework)
19 export RSYNC_PASSWORD
=alpine
20 echo "run_tests.sh:${LINENO}: note: Copying stuff to device"
21 /usr
/bin
/rsync
-cav ${CONFIGURATION_BUILD_DIR}/Security.framework
${RSYNC_URL}
22 /usr
/bin
/rsync
-cav ${CONFIGURATION_BUILD_DIR}/SecurityTests.app
${RSYNC_URL}
23 echo "run_tests.sh:${LINENO}: note: Running the test"
24 xcrun
-sdk "$SDKROOT" PurpleExec
--env "DYLD_FRAMEWORK_PATH=${INSTALL_DIR}" --cmd ${INSTALL_DIR}/${CMD}
26 echo "run_tests.sh:${LINENO}: note: Running test on simulator (${BUILT_PRODUCTS_DIR}/${CMD})"
27 export DYLD_ROOT_PATH
="${SDKROOT}"
28 export DYLD_LIBRARY_PATH
="${BUILT_PRODUCTS_DIR}"
29 export DYLD_FRAMEWORK_PATH
="${BUILT_PRODUCTS_DIR}"
30 ${BUILT_PRODUCTS_DIR}/${CMD}