mirror of git://gcc.gnu.org/git/gcc.git
normal.exp: Read testsuite_files, if it exists.
* testsuite/libstdc++-dg/normal.exp: Read testsuite_files, if it exists. From-SVN: r96980
This commit is contained in:
parent
97e095fdc7
commit
a53ed3ded7
|
@ -1,5 +1,8 @@
|
|||
2005-03-23 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* testsuite/libstdc++-dg/normal.exp: Read testsuite_files, if it
|
||||
exists.
|
||||
|
||||
* testsuite/lib/libstdc++.exp (libstdc++_wchar_t): Rename to ...
|
||||
(v3-wchar_t): ... this.
|
||||
(libstdc++_threads): Rename to ...
|
||||
|
|
|
@ -24,6 +24,33 @@ dg-init
|
|||
# Build the support objects.
|
||||
v3-build_support
|
||||
|
||||
set tests [list]
|
||||
|
||||
# If there is a "testsuite_files" file, use it.
|
||||
#
|
||||
# This is a workaround for problems reported with using:
|
||||
#
|
||||
# runtest normal.exp="`cat testsuite_files`"
|
||||
#
|
||||
# See:
|
||||
# http://gcc.gnu.org/ml/libstdc++/2005-03/msg00278.html
|
||||
# for discussion of the problem.
|
||||
#
|
||||
# If that worked consistently, we could modify "make check" to
|
||||
# pass that option, and then remove this code.
|
||||
if {[info exists blddir]} {
|
||||
set tests_file "${blddir}/testsuite/testsuite_files"
|
||||
}
|
||||
if {[info exists tests_file] && [file exists $tests_file]} {
|
||||
set f [open $tests_file]
|
||||
while { ! [eof $f] } {
|
||||
set t [gets $f]
|
||||
if { [string length "$t"] != 0 } {
|
||||
lappend tests ${srcdir}/${t}
|
||||
}
|
||||
}
|
||||
close $f
|
||||
} else {
|
||||
# Find directories that might have tests.
|
||||
set subdirs [glob "$srcdir/\[0-9\]\[0-9\]*"]
|
||||
foreach d [glob "$srcdir/\[a-z\]*"] {
|
||||
|
@ -31,15 +58,13 @@ foreach d [glob "$srcdir/\[a-z\]*"] {
|
|||
lappend subdirs $d
|
||||
}
|
||||
}
|
||||
|
||||
# Find all the tests.
|
||||
set tests [list]
|
||||
foreach s $subdirs {
|
||||
set subdir_tests [find $s *.cc]
|
||||
# Filter out tests that should not be run.
|
||||
foreach t $subdir_tests {
|
||||
# The DejaGNU "find" procedure sometimes returns a list
|
||||
# containing an empty string, when it should realy return
|
||||
# containing an empty string, when it should really return
|
||||
# an empty list.
|
||||
if { $t == "" } {
|
||||
continue
|
||||
|
@ -57,6 +82,7 @@ foreach s $subdirs {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
set tests [lsort $tests]
|
||||
|
||||
# Main loop.
|
||||
|
|
Loading…
Reference in New Issue