OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [lang.exp] - Rev 765

Compare with Previous | Blame | View Log

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:

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.