aboutsummaryrefslogtreecommitdiff
path: root/testall.sh
blob: 425474121d5b1a86e145bd7afb2e6cbb7e811678 (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=$(echo "$3 - 1" | bc)

echo "Initializing..."
rm files -rf

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

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