]> git.saurik.com Git - apple/security.git/blame - SecurityTests/clxutils/secTrustTime/runTests
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / secTrustTime / runTests
CommitLineData
d8f41ccd
A
1#! /bin/csh -f
2#
3# run secTrustTime in various interesting configurations.
4#
5set BUILD_DIR=$LOCAL_BUILD_DIR
6set LOOPS="-l 100"
7set SECTIME="$LOCAL_BUILD_DIR/secTrustTime $LOOPS"
8set DO_LEOPARD=YES
9
10while ( $#argv > 0 )
11 switch ( "$argv[1]" )
12 case -tiger:
13 set DO_LEOPARD = NO
14 shift
15 breaksw
16 default:
17 echo "Usage: secTrustTime [-tiger]"
18 exit(1)
19 endsw
20end
21
22$SECTIME || exit(1)
23$SECTIME -k || exit(1)
24$SECTIME -k -n || exit(1)
25$SECTIME -K || exit(1)
26$SECTIME -K -n || exit(1)
27$SECTIME -T || exit(1)
28$SECTIME -T -n || exit(1)
29if($DO_LEOPARD == YES) then
30 $SECTIME -t || exit(1)
31endif
32
33