diff options
Diffstat (limited to 'src/run_tests.sh')
| -rwxr-xr-x | src/run_tests.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/run_tests.sh b/src/run_tests.sh new file mode 100755 index 0000000..aaa1ba1 --- /dev/null +++ b/src/run_tests.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash + +set -e + +LOGDIR="/tmp/typhoon/manual" +HEAD_LOGDIR="../head_reference/logs" +TESTS="../tests" + +/bin/rm -rf "${LOGDIR}/*" + +clear +echo -n "Launching " +for suite in ecm_ringers ecm_confident_quick ecm_hard_quick; do + echo -n "$suite@sd10 " + ./typhoon \ + --cpus 1 \ + --hash 256m \ + --logfile "$LOGDIR/sd10_${suite}.log" \ + --batch \ + --command "force; book name /nonexistent.book.bin; sd 10; script $TESTS/${suite}.ep_" \ + > "$LOGDIR/sd10_${suite}.out" 2>&1 & + echo -n "$suite@sn5M " + ./typhoon \ + --cpus 1 \ + --hash 256m \ + --logfile "$LOGDIR/sn5m_${suite}.log" \ + --batch \ + --command "force; book name /nonexistent.book.bin; sn 5000000; script $TESTS/${suite}.ep_" \ + > "$LOGDIR/sn5m_${suite}.out" 2>&1 & +done +echo +echo +wait + +for suite in ecm_ringers ecm_confident_quick ecm_hard_quick; do + echo "----[ $suite sd=10 ]----" + tail -32 $LOGDIR/sd10_${suite}.out | head -3 | prefix "CANDIDATE>" + tail -32 $HEAD_LOGDIR/sd10_${suite}.out | head -3 | prefix " HEAD>" + echo + echo "----[ $suite sn=5M ]----" + tail -32 $LOGDIR/sn5m_${suite}.out | head -3 | prefix "CANDIDATE>" + tail -32 $HEAD_LOGDIR/sn5m_${suite}.out | head -3 | prefix " HEAD>" + echo +done |
