]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/secTrustTime/runTests
Security-57031.10.10.tar.gz
[apple/security.git] / SecurityTests / clxutils / secTrustTime / runTests
1 #! /bin/csh -f
2 #
3 # run secTrustTime in various interesting configurations.
4 #
5 set BUILD_DIR=$LOCAL_BUILD_DIR
6 set LOOPS="-l 100"
7 set SECTIME="$LOCAL_BUILD_DIR/secTrustTime $LOOPS"
8 set DO_LEOPARD=YES
9
10 while ( $#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
20 end
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)
29 if($DO_LEOPARD == YES) then
30 $SECTIME -t || exit(1)
31 endif
32
33