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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libstdc++-v3/] [testsuite/] [libstdc++-dg/] [conformance.exp] - Blame information for rev 742

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 742 jeremybenn
# Functional and regression tests in C++ for libstdc++.
2
 
3
# Copyright (C) 2001, 2002, 2003, 2004, 2009, 2010 Free Software Foundation, Inc.
4
#
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3 of the License, or
8
# (at your option) any later version.
9
#
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with this program; see the file COPYING3.  If not see
17
# .
18
 
19
# libstdc++-v3 testsuite that uses the 'dg.exp' driver.
20
 
21
# Initialization.
22
dg-init
23
 
24
# Build the support objects.
25
v3-build_support
26
 
27
set tests [list]
28
 
29
# If there is a "testsuite_files" file, use it.
30
#
31
# This is a workaround for problems reported with using:
32
#
33
#   runtest normal.exp="`cat testsuite_files`"
34
#
35
# See:
36
#  http://gcc.gnu.org/ml/libstdc++/2005-03/msg00278.html
37
# for discussion of the problem.
38
#
39
# If that worked consistently, we could modify "make check" to
40
# pass that option, and then remove this code.
41
if {[info exists blddir]} {
42
    set tests_file "${blddir}/testsuite/testsuite_files"
43
}
44
if {[info exists tests_file] && [file exists $tests_file]} {
45
    set f [open $tests_file]
46
    while { ! [eof $f] } {
47
        set t [gets $f]
48
        if { [string length "$t"] != 0 } {
49
            lappend tests ${srcdir}/${t}
50
        }
51
    }
52
    close $f
53
} else {
54
    # Find directories that might have tests.
55
    set subdirs [glob "$srcdir/\[0-9\]\[0-9\]*"]
56
    lappend subdirs "$srcdir/abi"
57
    lappend subdirs "$srcdir/backward"
58
    lappend subdirs "$srcdir/ext"
59
    lappend subdirs "$srcdir/performance"
60
    lappend subdirs "$srcdir/tr1"
61
    lappend subdirs "$srcdir/tr2"
62
    lappend subdirs "$srcdir/decimal"
63
    verbose "subdirs are $subdirs"
64
 
65
    # Find all the tests.
66
    foreach s $subdirs {
67
        set subdir_tests [find $s *.cc]
68
        set subdir_tests_c [find $s *.c]
69
        foreach e $subdir_tests_c {
70
            lappend subdir_tests $e
71
        }
72
 
73
        # Filter out tests that should not be run.
74
        foreach t $subdir_tests {
75
            # The DejaGNU "find" procedure sometimes returns a list
76
            # containing an empty string, when it should really return
77
            # an empty list.
78
            if { $t == "" } {
79
                continue
80
            }
81
            # Filter out:
82
            # 0. utilities, other parts of the testing infrastructure.
83
            # 1. interactive tests.
84
            # 2. performance tests.
85
            # 3. wchar_t tests, if not supported.
86
            # 4. thread tests, if not supported.
87
            # 5. *_filebuf, if file I/O is not supported.
88
            if { [string first _xin $t] == -1
89
                 && [string first performance $t] == -1
90
                 && (${v3-wchar_t} || [string first wchar_t $t] == -1)
91
                 && (${v3-threads} || [string first thread $t] == -1)
92
                 && ([string first "_filebuf" $t] == -1
93
                     || [check_v3_target_fileio]) } {
94
                lappend tests $t
95
            }
96
        }
97
    }
98
}
99
set tests [lsort $tests]
100
 
101
# Main loop.
102
global DEFAULT_CXXFLAGS
103
global PCH_CXXFLAGS
104
dg-runtest $tests "" "$DEFAULT_CXXFLAGS $PCH_CXXFLAGS"
105
 
106
# All done.
107
dg-finish

powered by: WebSVN 2.1.0

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