3 proc gasp_test
{ filename testname opt
} {
8 send_log
"$srcdir/lib/run $GASP -I$srcdir/gasp -s $opt $filename.asm -o gasp.out\n"
9 catch
"exec $srcdir/lib/run $GASP -I$srcdir/gasp -s $opt $filename.asm -o gasp.out" errs
10 catch
"exec diff gasp.out $filename.out" diffs
11 set diffs
[prune_warnings $diffs
]
12 if ![string match
"" $diffs] {
23 foreach src
[ lsort
[ glob $srcdir
/gasp
/*.asm
] ] {
24 regsub
-all
".asm" $src "" t
25 regsub
"^.*/(\[^/\]*)$" $t "gasp \\1" testname
26 gasp_test $t $testname
""
29 foreach src
[ lsort
[ glob $srcdir
/gasp
/mri
/*.asm
] ] {
30 regsub
-all
".asm" $src "" t
31 regsub
"^.*/(\[^/\]*)$" $t "gasp MRI \\1" testname
32 gasp_test $t $testname
"-M"
35 # FIXME
: this is here cause of a bug in DejaGnu
1.1.1. When it is no longer
36 # in use
, then this can be removed.
37 if [info exists errorInfo
] then {