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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [tk/] [tests/] [all] - Blame information for rev 1780

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

Line No. Rev Author Line
1 578 markom
# This file contains a top-level script to run all of the Tcl
2
# tests.  Execute it by invoking "source all" when running tclTest
3
# in this directory.
4
#
5
 
6
# RCS: @(#) $Id: all,v 1.1.1.1 2002-01-16 10:25:58 markom Exp $
7
# If the srcdir variable exists, tests are looked for in that
8
# directory.  Otherwise they are looked for in ".".
9
 
10
if {! [info exists srcdir]} then {
11
    set srcdir .
12
}
13
 
14
# Always explicitly load `defs', so tests don't have to.  This avoids
15
# the need for each .test file to know about $srcdir.
16
 
17
source $srcdir/defs
18
 
19
switch $tcl_platform(platform) {
20
    "windows" {
21
        # Tests that cause tk to crash under windows.
22
        set crash {}
23
 
24
        # Tests that fail under windows.
25
 
26
        set fail { grid.test }
27
 
28
        if {! [info exist exclude] } {
29
            set exclude [string tolower "$crash $fail"]
30
        }
31
    }
32
    "macintosh" {
33
        set x [pwd]
34
        cd $tk_library
35
        set tk_library [pwd]
36
        cd $x
37
 
38
        # Tests that cause tk to crash under mac.
39
        set crash {}
40
 
41
        # Tests that fail under mac.
42
        set fail {bind.test entry.test send.test textDisp.test}
43
 
44
        set exclude [string tolower "$crash $fail"]
45
    }
46
    "unix" {
47
        set exclude ""
48
    }
49
}
50
 
51
if {$tcl_platform(os) == "Win32s"} {
52
    set tests [lsort [glob $srcdir/*.tes]]
53
} else {
54
    set tests [lsort [glob $srcdir/*.test]]
55
}
56
 
57
foreach i $tests {
58
    set tail [file tail $i]
59
    if [string match l.*.test $tail] {
60
        # This is an SCCS lock file;  ignore it.
61
        continue
62
    }
63
    if [lsearch $exclude [string tolower $tail]]>=0 {
64
        # Do not source this file; it exercises a known bug at this time.
65
        puts stdout "Skipping $tail"
66
        continue
67
    }
68
    puts stdout $tail
69
    if [catch {source $i} msg] {
70
        puts $msg
71
    }
72
}
73
puts "Tests all done"

powered by: WebSVN 2.1.0

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