blob: f00563f15fe0237ac38a6c5d4f7b68676412a23f [file] [log] [blame]
aPiecekb5cda5e2023-06-29 11:26:28 +02001package require tcltest
2
3# Hook to determine if any of the tests failed.
4# Sets a global variable exitCode to 1 if any test fails otherwise it is set to 0.
5proc tcltest::cleanupTestsHook {} {
6 variable numTests
7 set ::exitCode [expr {$numTests(Failed) > 0}]
8}
9
10if {[info exists ::env(TESTS_DIR)]} {
11 tcltest::configure -testdir "$env(TESTS_DIR)"
12}
13
14tcltest::runAllTests
15exit $exitCode