3 # GASP is now deprecated
(and not built by default
)
4 # so
if it does not exist
, do not test it.
6 if {![info exists GASP
] ||
! [file
exists $GASP
] } then {
10 proc gasp_test
{ filename testname opt
} {
15 send_log
"$srcdir/lib/run $GASP -I$srcdir/gasp -s $opt $filename.asm -o gasp.out\n"
16 catch
"exec $srcdir/lib/run $GASP -I$srcdir/gasp -s $opt $filename.asm -o gasp.out" errs
17 catch
"exec diff gasp.out $filename.out" diffs
18 set diffs
[prune_warnings $diffs
]
19 if ![string match
"" $diffs] {
30 foreach src
[ lsort
[ glob $srcdir
/gasp
/*.asm
] ] {
31 regsub
-all
".asm" $src "" t
32 regsub
"^.*/(\[^/\]*)$" $t "gasp \\1" testname
33 gasp_test $t $testname
""
36 foreach src
[ lsort
[ glob $srcdir
/gasp
/mri
/*.asm
] ] {
37 regsub
-all
".asm" $src "" t
38 regsub
"^.*/(\[^/\]*)$" $t "gasp MRI \\1" testname
39 gasp_test $t $testname
"-M"