1 # Commands covered: load unload
3 # This file contains a collection of tests for one or more of the Tcl
4 # built-in commands. Sourcing this file into Tcl runs the tests and
5 # generates output for errors. No output means no errors were found.
7 # Copyright (c) 1995 Sun Microsystems, Inc.
8 # Copyright (c) 1998-1999 by Scriptics Corporation.
10 # See the file "license.terms" for information on usage and redistribution
11 # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 if {"::tcltest" ni [namespace children]} {
14 package require tcltest 2.5
15 namespace import -force ::tcltest::*
18 set oldTSF $::tcltest::testSingleFile
19 set ::tcltest::testSingleFile false
21 if {[testConstraint unix] && $tcl_platform(os) eq "Darwin" &&
22 ![string match *pkga* [info loaded]]} {
23 # On Darwin, test .bundle (un)loading in addition to .dylib
25 source [file join [file dirname [info script]] load.test]
27 source [file join [file dirname [info script]] unload.test]
31 set ::tcltest::testSingleFile $oldTSF
33 ::tcltest::cleanupTests