]>
Commit | Line | Data |
---|---|---|
d8f41ccd A |
1 | #! /bin/csh -f |
2 | # | |
3 | # Run complete performance test suite, output to stdout. No options. | |
4 | # | |
5 | # Run this from SecurityTests/cspxutils. Both cspxutils and clxutils | |
6 | # must built (and they must be peers, i.e., ../clxutils exists). | |
7 | # Executables must be in $LOCAL_BUILD_DIR. | |
8 | # | |
9 | ||
10 | set CSPXUTILS=`pwd` | |
11 | # | |
12 | # Verify existence of a few crucial things before we start. | |
13 | # | |
14 | if ( ! -e ../clxutils) then | |
15 | echo ../clxutils not found. Aborting. | |
16 | exit(1) | |
17 | endif | |
18 | cd ../clxutils; set CLXUTILS=`pwd` | |
19 | # | |
20 | # safely look for this required env var | |
21 | # | |
22 | setenv | grep LOCAL_BUILD_DIR > /dev/null | |
23 | if($status != 0) then | |
24 | echo Please set env var LOCAL_BUILD_DIR. | |
25 | exit(1) | |
26 | endif | |
27 | set BUILD_DIR=$LOCAL_BUILD_DIR | |
28 | # | |
29 | if( ( ! -e $BUILD_DIR/perform ) || \ | |
30 | ( ! -e $BUILD_DIR/certTime) || \ | |
31 | ( ! -e $CLXUTILS/certTime)) then | |
32 | echo === You do not seem to have all of the required executables. | |
33 | echo === Please build all of cspxutils and clxutils. | |
34 | echo === See the README files in those directories for info. | |
35 | exit(1) | |
36 | endif | |
37 | # | |
38 | cd $CSPXUTILS/perform | |
39 | set cmd="./doPerform 1000 10240" | |
40 | echo $cmd | |
41 | $cmd || exit(1) | |
42 | echo ============================================================== | |
43 | cd $BUILD_DIR | |
44 | set cmd="./hashTime" | |
45 | echo $cmd | |
46 | $cmd || exit(1) | |
47 | echo ============================================================== | |
48 | cd $BUILD_DIR | |
49 | set cmd="./sigPerform a=r l=1000 k=1024" | |
50 | echo $cmd | |
51 | $cmd || exit(1) | |
52 | echo ============================================================== | |
53 | set cmd="./asymPerform k=1024" | |
54 | echo $cmd | |
55 | $cmd || exit(1) | |
56 | echo ============================================================== | |
57 | cd $CLXUTILS/certTime || exit(1) | |
58 | set cmd="./runTime" | |
59 | echo $cmd | |
60 | $cmd || exit(1) | |
61 | echo ============================================================== | |
62 | cd $CLXUTILS/kcTime || exit(1) | |
63 | set cmd="$BUILD_DIR/kcTime" | |
64 | echo $cmd | |
65 | $cmd || exit(1) | |
66 | echo ============================================================== | |
67 | cd $CLXUTILS/secTime || exit(1) | |
68 | set cmd="$BUILD_DIR/secTime" | |
69 | echo $cmd | |
70 | $cmd || exit(1) | |
71 | echo ============================================================== | |
72 | echo Performance suite complete. |