bench.sh: helper script to run the process several times

vseva/3.0
Victor Seva 13 years ago
parent 0a07ff590e
commit 9f1e6c3f01

@ -0,0 +1,15 @@
#!/bin/bash
NUM=${1:-20}
for i in $(seq $NUM); do
BASE_DIR=$(pwd) ./run_tests.sh -c &> /tmp/run_tests.log
if [[ $? -ne 0 ]]; then
echo "ERROR run_tests $i"
break
fi
BASE_DIR=$(pwd) ./get_results.sh &> /tmp/get_results.log
if [[ $? -ne 0 ]]; then
echo "ERROR get_results $i"
break
fi
echo "$i done ok"
done
Loading…
Cancel
Save