A little clean up.
From-SVN: r29790
This commit is contained in:
parent
3897b7b7b8
commit
0d9cd062a0
4 changed files with 13 additions and 1 deletions
35
libjava/testsuite/libjava.lang/lang.exp
Normal file
35
libjava/testsuite/libjava.lang/lang.exp
Normal file
|
@ -0,0 +1,35 @@
|
|||
global srcdir subdir
|
||||
|
||||
catch "glob -nocomplain ${srcdir}/${subdir}/*.out" srcfiles
|
||||
verbose "srcfiles are $srcfiles"
|
||||
|
||||
set prefix ""
|
||||
foreach x $srcfiles {
|
||||
regsub "\\.out$" $x "" prefix
|
||||
set bname [file tail $prefix]
|
||||
|
||||
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 ""
|
||||
}
|
||||
|
||||
set args [libjava_read_xfail $srcdir/$subdir/$bname.xfail]
|
||||
|
||||
verbose "inpfile is $inpfile"
|
||||
|
||||
test_libjava $options "${prefix}.java" "" $inpfile $resfile $args
|
||||
test_libjava $options "${prefix}.java" "-O" $inpfile $resfile $args
|
||||
}
|
||||
|
||||
# Local Variables:
|
||||
# tcl-indent-level:4
|
||||
# End:
|
Loading…
Add table
Add a link
Reference in a new issue