diff options
Diffstat (limited to '')
-rwxr-xr-x | testall.sh | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -1,18 +1,23 @@ #!/bin/bash -if [[ $# -ne 1 ]] +if [[ $# -ne 2 ]] then - echo "Usage: "$0" LOGLEAVES" + echo "Usage: "$0" LOGLEAVES RUNS" exit 1 fi + +runs=$2 + echo "Initializing..." +rm files -rf + ./server $1 csaa.db --overwrite > /dev/null & pid=$! -sleep 1 -/usr/bin/time -v ./testcreate.sh ./client -/usr/bin/time -v ./testmodify.sh ./client -/usr/bin/time -v ./testretrieve.sh ./client -/usr/bin/time -v ./testmodifyenc.sh ./client +sleep .2 +/usr/bin/time -v ./testcreate.sh ./client $runs +/usr/bin/time -v ./testmodify.sh ./client $runs +/usr/bin/time -v ./testretrieve.sh ./client $runs +/usr/bin/time -v ./testmodifyenc.sh ./client $runs echo "Encrypted retrieve: " -/usr/bin/time -v ./testretrieve.sh ./client +/usr/bin/time -v ./testretrieve.sh ./client $runs kill -SIGINT $! |