Demonstration release of the principles underpinning krsd.
[krsd] / scripts / leakcheck.sh
1 #!/bin/bash
2
3 sudo valgrind --trace-children=yes --leak-check=full --show-reachable=yes --log-file=leakcheck.log ./rs-serve -p 8181 &
4
5 sleep 2
6
7 . scripts/run-requests.sh
8
9 # echo -n "Waiting for session(s) to expire (needs RS_SESSION_MAX_AGE=10 to work)..."
10 # sleep 12
11 # echo "!"
12
13 # done.
14 kill %1
15
16 sleep 2
17
18 [ "$LEAKCHECK_SILENT" != "1" ] && less leakcheck.log
19
20 exit 0