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

runs=$2

echo "Initializing dummy..."
rm files -rf

./dummy_server $1 csaa.db --overwrite > /dev/null &
pid=$!
sleep .2
/usr/bin/time -v ./testcreate.sh ./dummy_client $runs
/usr/bin/time -v ./testmodify.sh ./dummy_client $runs
/usr/bin/time -v ./testretrieve.sh ./dummy_client $runs
kill -SIGINT $!
rm csaa.db