mirror of
https://review.haiku-os.org/buildtools
synced 2025-01-31 18:44:48 +01:00
346d84c900
git-svn-id: file:///srv/svn/repos/haiku/trunk/buildtools@9577 a95241bf-73f2-0310-859d-f6bbb57e9c96
35 lines
864 B
Plaintext
35 lines
864 B
Plaintext
global srcdir subdir
|
|
|
|
catch "glob -nocomplain $srcdir/$subdir/../../tests/*.exp" srcfiles
|
|
verbose "srcfiles are $srcfiles"
|
|
|
|
set prefix ""
|
|
foreach x $srcfiles {
|
|
regsub "\\.exp$" $x "" prefix
|
|
set bname [file tail $prefix]
|
|
set args ""
|
|
if [file exists $srcdir/$subdir/${bname}.arg] {
|
|
set id [open "$srcdir/$subdir/${bname}.arg" r];
|
|
set args [read -nonewline $id];
|
|
close $id;
|
|
}
|
|
if [file exists $srcdir/$subdir/${bname}.xpo] {
|
|
set resfile "$srcdir/$subdir/${bname}.xpo"
|
|
set options "regexp_match"
|
|
} else {
|
|
set resfile "${prefix}.exp"
|
|
set options ""
|
|
}
|
|
|
|
if [file exists ${prefix}.inp] {
|
|
set inpfile ${prefix}.inp
|
|
} else {
|
|
set inpfile ""
|
|
}
|
|
|
|
verbose "inpfile is $inpfile"
|
|
|
|
test_libstdc++ $options "${prefix}.cc" "" $inpfile $resfile $args
|
|
test_libstdc++ $options "${prefix}.cc" "-O" $inpfile $resfile $args
|
|
}
|