2015-01-14 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libjava / testsuite / libjava.lang / lang.exp
blob5e46770c40cbad5a2a0696dfb030b5aa08e2ee92
1 global srcdir subdir
3 catch { lsort [glob -nocomplain ${srcdir}/${subdir}/*.out] } srcfiles
4 verbose "srcfiles are $srcfiles"
6 set prefix ""
7 foreach x $srcfiles {
8 regsub "\\.out$" $x "" prefix
9 set bname [file tail $prefix]
11 if [file exists $srcdir/$subdir/${bname}.xpo] {
12 set resfile "$srcdir/$subdir/${bname}.xpo"
13 set options "regexp_match"
14 } else {
15 set resfile "${prefix}.out"
16 set options ""
19 if [file exists ${prefix}.inp] {
20 set inpfile ${prefix}.inp
21 } else {
22 set inpfile ""
25 set args [libjava_read_xfail $srcdir/$subdir/$bname.xfail]
27 verbose "inpfile is $inpfile"
29 test_libjava $options "${prefix}.jar" "" $inpfile $resfile $args
30 test_libjava $options "${prefix}.jar" "-O3" $inpfile $resfile $args
33 # Local Variables:
34 # tcl-indent-level:4
35 # End: