3 # Run all normal configurations of cspdvt and cltpdvt.
5 # safely look for this required env var
7 setenv
| grep LOCAL_BUILD_DIR
> /dev
/null
9 echo Please
set env var LOCAL_BUILD_DIR.
13 # Setup HOME environment with an unlocked login.keychain
14 setenv HOME
"${LOCAL_BUILD_DIR}/home"
15 # Cleanup after a possible previous test run
16 rm -rf "${LOCAL_BUILD_DIR}/home"
17 echo Creating virtual home directory
in "$HOME"...
18 mkdir -p "${HOME}/Library/Preferences" || exit(1)
19 setenv PATH
"${LOCAL_BUILD_DIR}:${PATH}"
21 # Avoid Sec layer overriding what we're trying to do here....
24 if($USERNAME == root
) then
25 set LOGIN_KEYCHAIN
="${LOCAL_BUILD_DIR}/home/Library/Keychains/login.keychain"
27 set LOGIN_KEYCHAIN
=login.keychain
29 echo Creating virtual login keychain
in "$LOGIN_KEYCHAIN"...
30 security create
-p test "$LOGIN_KEYCHAIN"
31 security
set-keychain-settings "$LOGIN_KEYCHAIN" || exit(1)
33 set BUILD_DIR
=$LOCAL_BUILD_DIR
43 echo Usage
: testall \
[f\
(ull SSL tests\
)\
]
49 # Verify existence of a few random executables before we start.
51 if( ( ! -e $BUILD_DIR/wrapTest
) || \
52 ( ! -e $BUILD_DIR/hashTest
) || \
53 ( ! -e $BUILD_DIR/sslViewer
) || \
54 ( ! -e $BUILD_DIR/threadTest
) ) then
55 echo === You
do not seem to have all of the required executables.
56 echo === Please run
\"make all
\".
61 echo ===== Running raw CSP regression
test =====
63 echo ===== Running CSPDL regression
test =====
64 .
/cspdvt q D
|| exit(1)
65 echo ===== Running CL
/TP regression
test =====
66 cd ..
/clxutils
; .
/cltpdvt q
$FULL_SSL || exit(1)
67 echo ===== Full CSP
/CL
/TP regression
test SUCCEEDED
=====