blob: 4dc1dd92167c9a9e1caf6a50e064bc0ed6591034 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
set -euo pipefail
WEBROOT=/srv/http/wumpus.liw.fi
while true; do
echo "$(date "+%Y-%m-%s %H:%M:%S") Starting new test run"
started="$(date +%s)"
env RUST_BACKTRACE=full \
./wumpus-hunter \
--keep \
--dir ~/heartwood \
--log "$WEBROOT/log.txt" \
--run-log "$WEBROOT" \
--stats "$WEBROOT/stats.txt" \
--counts "$WEBROOT/counts.html" || true
ended="$(date +%s)"
duration="$(expr "$ended" - "$started")"
echo " $duration s"
done
|