198db2950406e9f1de2e8d945ceb570461cfd35e
[testub10.git] / scanner / georg.sh
1 #! /bin/bash
2
3 TCG=./georg_testcase-generator.sh
4 DIR=~/abgabe/scanner
5 ELF=~/abgabe/scanner/scanner
6
7 make -C $DIR/
8
9 while read DIGITS i
10 do
11         PROGRAM=$ELF DIGITS=$DIGITS $TCG $i > /dev/null
12
13         mv -f $i.0.0 georg_$i.0
14         mv -f $i.0.1 georg_$i.out
15
16         rm -f $i.*.*
17
18 done << EOF
19 3       $(echo -ne ' :='        | xxd -ps)
20 6       $(echo -ne ' /*1'       | xxd -ps)
21 5       $(echo -ne ' if1'       | xxd -ps)
22 4       $(echo -ne ' 0x1'       | xxd -ps)
23 2       $(echo -ne ' \t\r\f\b'  | xxd -ps)
24 EOF
25 cat > /dev/null << EOF
26 3       $(echo -ne '0123'       | xxd -ps)
27 6       $(echo -ne ' if39'      | xxd -ps)
28 7       $(echo -ne ' if0x1'     | xxd -ps)
29 EOF
30
31 make -C $DIR/ test
32
33 ## Georg Schiesser <e0307201/AT/student.tuwien.ac.at> @ UBVL 2010S # GPLv2
34 ## vim: filetype=sh shiftwidth=8 tabstop=8 noexpandtab nopaste:
35 ## EOF