aboutsummaryrefslogtreecommitdiff
path: root/testall.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtestall.sh21
1 files changed, 13 insertions, 8 deletions
diff --git a/testall.sh b/testall.sh
index dfc9972..b637241 100755
--- a/testall.sh
+++ b/testall.sh
@@ -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 $!