summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/lang.exp
blob: 5e46770c40cbad5a2a0696dfb030b5aa08e2ee92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
global srcdir subdir

catch { lsort [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}.jar" "" $inpfile $resfile $args
    test_libjava $options "${prefix}.jar" "-O3" $inpfile $resfile $args
}

# Local Variables:
# tcl-indent-level:4
# End: