scripts: add onetest_gesamt for arm64
[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 LOC=/usr/ftp/pub/ubvl/test/scanner
7
8 if ! make -C $DIR/
9 then
10         echo >&2 "ERROR: make failed"
11         exit 1
12 fi
13
14 while read DIGITS i
15 do
16         # generate testcases using charset in hex
17         if ! PROGRAM=$ELF DIGITS=$DIGITS $TCG $i > /dev/null
18         then
19                 echo >&2 "ERROR: TCG failed"
20                 rm -f $i.*.*
21                 exit 1
22         fi
23
24         # positive tests only
25         mv -f $i.0.0 georg_$i.0
26         mv -f $i.0.1 georg_$i.out
27
28         # cleanup
29         rm -f $i.*.*
30
31 done << EOF
32 3       $(echo -ne ' :='        | xxd -ps)
33 6       $(echo -ne ' /*1'       | xxd -ps)
34 5       $(echo -ne ' if1'       | xxd -ps)
35 4       $(echo -ne ' 0x1'       | xxd -ps)
36 2       $(echo -ne ' \t\r\f\b'  | xxd -ps)
37 EOF
38 # skip that below
39 cat > /dev/null << EOF
40 3       $(echo -ne '0123'       | xxd -ps)
41 6       $(echo -ne ' if39'      | xxd -ps)
42 7       $(echo -ne ' if0x1'     | xxd -ps)
43 EOF
44
45 # testbench
46 $LOC/test 2>&1
47
48 ## Georg Schiesser <e0307201/AT/student.tuwien.ac.at> @ UBVL 2010S # GPLv2
49 ## vim: filetype=sh shiftwidth=8 tabstop=8 noexpandtab nopaste:
50 ## EOF