aboutsummaryrefslogtreecommitdiff
path: root/testall.sh
blob: e2c584c72ea3371900ba160accaec1024158ce2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
if [[ $# -ne 3 ]]
then
   echo "Usage: "$0" LOGLEAVES RUNS_CREATE RUNS_TEST"
   exit 1
fi

runs_create=$2
runs_test=$3

echo "Initializing..."
rm files -rf

./server $1 csaa.db --overwrite > /dev/null &
pid=$!
sleep .2
/usr/bin/time -v ./testcreate.sh ./client $runs_create
/usr/bin/time -v ./testmodify.sh ./client $runs_test 1
/usr/bin/time -v ./testretrieve.sh ./client $runs_test 1
/usr/bin/time -v ./testmodifyenc.sh ./client $runs_test 1

echo "Encrypted retrieve: "
/usr/bin/time -v ./testretrieve.sh ./client $runs_test 1
kill -SIGINT $!
rm csaa.db