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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [dejagnu/] [testsuite/] [runtest.all/] [stats.exp] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
2
 
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
7
#
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
# GNU General Public License for more details.
12
#
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
 
17
# Please email any bugs, comments, and/or additions to this file to:
18
# bug-dejagnu@prep.ai.mit.edu
19
 
20
# This file tests pass/fail/etc.
21
# The way we do this is to recursively invoke ourselves on a small testsuite
22
# and analyze the results.
23
 
24
load_lib util-defs.exp
25
 
26
if ![info exists tmpdir] {
27
    set tmpdir $objdir/tmpdir
28
}
29
 
30
if ![file isdirectory $tmpdir] {
31
    catch "exec mkdir $tmpdir"
32
}
33
 
34
set tests {
35
    { pass "expected passes\[ \t\]+1\n" }
36
    { fail "unexpected failures\[ \t\]+1\n" }
37
    { xpass "unexpected successes\[ \t\]+1\n" }
38
    { xfail "expected failures\[ \t\]+1\n" }
39
    { untested "untested testcases\[ \t\]+1\n" }
40
    { unresolved "unresolved testcases\[ \t\]+1\n" }
41
    { unsupported "unsupported tests\[ \t\]+1\n" }
42
}
43
 
44
foreach t $tests {
45
    if [util_test "$RUNTEST" \
46
            "--outdir $tmpdir STATS_TEST=[lindex $t 0] stats-sub.exp" \
47
            "" \
48
            [lindex $t 1]] {
49
        fail [lindex $t 0]
50
    } else {
51
        pass [lindex $t 0]
52
    }
53
}

powered by: WebSVN 2.1.0

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