Debian Codegraph @

pbx/ael/ael-test/runtests

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 ORIG=`mktempscip-shell system . . mktemp. /tmp/mytest.XXXXXXscip-shell filesystem . . `/tmp/mytest.XXXXXX`.`
3 NEW=`mktempscip-shell system . . mktemp. /tmp/mytest.XXXXXXscip-shell filesystem . . `/tmp/mytest.XXXXXX`.`
4
5 do_filterscip-shell shell shell-project 0.0.0 do_filter().() {
6 sedscip-shell system . . sed. 's/line:[0-9]*//; /^Executed.*/d; s/column=[0-9]*/ /; s/Cols: [0-9]*-[0-9]*/___/'
7 }
8
9 for i in ael-test*; do
10 echoscip-shell system . . echo. -n Test: $i..................
11 (cd $i; ../../../../utils/aelparse -n -d | grepscip-shell system . . grep. -v -i 'seconds' > ../res.$i)
12 do_filterscip-shell shell shell-project 0.0.0 do_filter(). < res.$i > $NEW
13 do_filterscip-shell shell shell-project 0.0.0 do_filter(). < ref.$i > $ORIG
14 if (diffscip-shell system . . diff. -q $NEW $ORIG > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ) then
15 echoscip-shell system . . echo. PASSED
16 rmscip-shell system . . rm. res.$i
17 else
18 echoscip-shell system . . echo. %%%%%%FAILED%%%%%%
19 # diff -u ref.$i res.$i
20 diffscip-shell system . . diff. -u $ORIG $NEW
21 fi
22
23 done
24
25 for i in ael-ntest*; do
26 echoscip-shell system . . echo. -n Test: $i.................
27 (cd $i; ../../../../utils/aelparse -d | grepscip-shell system . . grep. -v -i 'seconds' > ../res.$i)
28 do_filterscip-shell shell shell-project 0.0.0 do_filter(). < res.$i > $NEW
29 do_filterscip-shell shell shell-project 0.0.0 do_filter(). < ref.$i > $ORIG
30 if (diffscip-shell system . . diff. -q $NEW $ORIG > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ) then
31 echoscip-shell system . . echo. PASSED
32 rmscip-shell system . . rm. res.$i
33 else
34 echoscip-shell system . . echo. %%%%%%FAILED%%%%%%
35 # diff -u ref.$i res.$i
36 diffscip-shell system . . diff. -u $ORIG $NEW
37 fi
38
39 done
40
41 for i in ael-vtest*; do
42 echoscip-shell system . . echo. -n Test: $i.................
43 (cd $i; ../../../../utils/aelparse -d -w -n | grepscip-shell system . . grep. -v -i 'seconds' > ../res2.$i)
44
45 if (diffscip-shell system . . diff. -q ref.$i $i/extensions.conf.aeldump > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 ) then
46 echoscip-shell system . . echo. PASSED
47 rmscip-shell system . . rm. res2.$i
48 rmscip-shell system . . rm. $i/extensions.conf.aeldump
49 else
50 echoscip-shell system . . echo. %%%%%%FAILED%%%%%%
51 # diff -u ref.$i res.$i
52 diffscip-shell system . . diff. -u ref.$i $i/extensions.conf.aeldump
53 fi
54
55 done
56 rmscip-shell system . . rm. $NEW $ORIG