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

runs=$2

echo "Initializing..."
rm files -rf

./server $1 csaa.db --overwrite > /dev/null &
pid=$!
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 $runs
kill -SIGINT $!