| 1 |
# all.tcl -- |
| 2 |
# |
| 3 |
# This file contains a top-level script to run all of the Tcl |
| 4 |
# tests. Execute it by invoking "source all.test" when running tcltest |
| 5 |
# in this directory. |
| 6 |
# |
| 7 |
# Copyright (c) 1998-1999 by Scriptics Corporation. |
| 8 |
# Copyright (c) 2000 by Ajuba Solutions |
| 9 |
# |
| 10 |
# See the file "license.terms" for information on usage and redistribution |
| 11 |
# of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
| 12 |
|
| 13 |
package require Tcl 8.5- |
| 14 |
package require tcltest 2.5 |
| 15 |
namespace import ::tcltest::* |
| 16 |
|
| 17 |
configure -testdir [file normalize [file dirname [info script]]] {*}$argv |
| 18 |
|
| 19 |
if {[singleProcess]} { |
| 20 |
interp debug {} -frame 1 |
| 21 |
} |
| 22 |
|
| 23 |
set ErrorOnFailures [info exists env(ERROR_ON_FAILURES)] |
| 24 |
unset -nocomplain env(ERROR_ON_FAILURES) |
| 25 |
if {[runAllTests] && $ErrorOnFailures} {exit 1} |
| 26 |
# if calling direct only (avoid rewrite exit if inlined or interactive): |
| 27 |
if { [info exists ::argv0] && [file tail $::argv0] eq [file tail [info script]] |
| 28 |
&& !([info exists ::tcl_interactive] && $::tcl_interactive) |
| 29 |
} { |
| 30 |
proc exit args {} |
| 31 |
} |