1999-04-07 16:42:40 +02:00
|
|
|
global srcdir subdir
|
|
|
|
|
2002-07-18 19:42:31 +02:00
|
|
|
catch { lsort [glob -nocomplain ${srcdir}/${subdir}/*.out] } srcfiles
|
1999-04-07 16:42:40 +02:00
|
|
|
verbose "srcfiles are $srcfiles"
|
|
|
|
|
|
|
|
set prefix ""
|
|
|
|
foreach x $srcfiles {
|
|
|
|
regsub "\\.out$" $x "" prefix
|
|
|
|
set bname [file tail $prefix]
|
1999-07-06 17:38:09 +02:00
|
|
|
|
1999-04-07 16:42:40 +02:00
|
|
|
if [file exists $srcdir/$subdir/${bname}.xpo] {
|
|
|
|
set resfile "$srcdir/$subdir/${bname}.xpo"
|
|
|
|
set options "regexp_match"
|
|
|
|
} else {
|
|
|
|
set resfile "${prefix}.out"
|
|
|
|
set options ""
|
|
|
|
}
|
|
|
|
|
|
|
|
if [file exists ${prefix}.inp] {
|
|
|
|
set inpfile ${prefix}.inp
|
|
|
|
} else {
|
|
|
|
set inpfile ""
|
|
|
|
}
|
|
|
|
|
1999-07-06 17:38:09 +02:00
|
|
|
set args [libjava_read_xfail $srcdir/$subdir/$bname.xfail]
|
|
|
|
|
1999-04-07 16:42:40 +02:00
|
|
|
verbose "inpfile is $inpfile"
|
|
|
|
|
|
|
|
test_libjava $options "${prefix}.java" "" $inpfile $resfile $args
|
2003-09-05 03:54:21 +02:00
|
|
|
test_libjava $options "${prefix}.java" "-O3" $inpfile $resfile $args
|
1999-04-07 16:42:40 +02:00
|
|
|
}
|
1999-07-06 17:38:09 +02:00
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tcl-indent-level:4
|
|
|
|
# End:
|