3 # Run cmstest, handsoff, any user, any environment.
4 # This uses a keychain we have right here for this purpose. It's insecure - we
5 # know its passphrase and use it here in the clear to unlock - and its private
6 # keys have wide-open ACLs to avoid UI. We use the root used to generate the
7 # certs in that keychain in the -A option to newCmsTool.
9 # We copy the test's keychain to ${BUILD_DIR}/cmsKeychain just to keep the UI spew to
14 # safely look for this required env var
16 setenv
| /usr
/bin
/grep LOCAL_BUILD_DIR
> /dev
/null
18 echo Please
set env var LOCAL_BUILD_DIR.
21 set BUILD_DIR
=$LOCAL_BUILD_DIR
24 set CMS_KEYCHAIN_SRC
=cmsKeychain
25 set CMS_KEYCHAIN_DST
=${BUILD_DIR}/cmsKeychain
26 set CMS_KEYCHAIN_PASSWORD
=cmsKeychain
27 set CMS_KEYCHAIN_ROOT
=cmsRoot.cer
28 set USER1
=user1@debug.apple.com
29 set USER2
=user2@debug.apple.com
41 echo "Usage: cmstestHandsoff [-q(uiet)]"
46 echo Starting cmstestHandsoff
48 set cmd
="cp $CMS_KEYCHAIN_SRC $CMS_KEYCHAIN_DST"
49 if($OUR_QUIET == NO
) then
52 # ignore errors here...we'll soon fail if this does
55 set cmd
="/usr/bin/security unlock -p $CMS_KEYCHAIN_PASSWORD $CMS_KEYCHAIN_DST"
56 if($OUR_QUIET == NO
) then
61 set cmd
="./cmstest -s $USER1 -S $USER2 -k $CMS_KEYCHAIN_DST -a $CMS_KEYCHAIN_ROOT $QUIET"
62 if($OUR_QUIET == NO
) then
68 set cmd
="rm $CMS_KEYCHAIN_DST"
69 if($OUR_QUIET == NO
) then
74 if($OUR_QUIET == NO
) then
75 echo === cmstestHandsoff Succeeded
===