summaryrefslogtreecommitdiff
path: root/src/run_tests.sh
blob: aaa1ba19edf56a6428a02d639a7dc4e997595360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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