Name | Date | Size | ||
---|---|---|---|---|
.. | 01-Mar-2013 | 23 | ||
all.tcl | H A D | 02-Nov-2006 | 610 | |
append.test | H A D | 01-Sep-2010 | 8 KiB | |
appendComp.test | H A D | 01-Sep-2010 | 10.8 KiB | |
apply.test | H A D | 15-Aug-2010 | 10 KiB | |
assocd.test | H A D | 19-May-2004 | 2.1 KiB | |
async.test | H A D | 21-Mar-2006 | 5.9 KiB | |
autoMkindex.test | H A D | 25-May-2004 | 10.4 KiB | |
basic.test | H A D | 19-Apr-2007 | 30.3 KiB | |
binary.test | H A D | 23-Mar-2008 | 83.3 KiB | |
case.test | H A D | 09-Oct-2006 | 3 KiB | |
chan.test | H A D | 13-Dec-2007 | 8.6 KiB | |
chanio.test | H A D | 20-Jun-2008 | 241.9 KiB | |
clock.test | H A D | 28-Oct-2009 | 1.8 MiB | |
cmdAH.test | H A D | 28-Dec-2009 | 50 KiB | |
cmdIL.test | H A D | 13-Feb-2008 | 25 KiB | |
cmdInfo.test | H A D | 02-Nov-2006 | 3.6 KiB | |
cmdMZ.test | H A D | 09-Oct-2006 | 11.8 KiB | |
compExpr-old.test | H A D | 13-Dec-2007 | 36.2 KiB | |
compExpr.test | H A D | 16-Jan-2008 | 16.2 KiB | |
compile.test | H A D | 29-Oct-2009 | 19.8 KiB | |
concat.test | H A D | 19-May-2004 | 1.6 KiB | |
config.test | H A D | 29-Oct-2004 | 2.3 KiB | |
dcall.test | H A D | 19-May-2004 | 1.4 KiB | |
dict.test | H A D | 20-May-2010 | 38.3 KiB | |
dstring.test | H A D | 24-Jun-2004 | 10 KiB | |
encoding.test | H A D | 16-Nov-2009 | 18.3 KiB | |
env.test | H A D | 06-Jan-2010 | 7 KiB | |
error.test | H A D | 09-Oct-2006 | 6.9 KiB | |
eval.test | H A D | 09-Oct-2006 | 2.3 KiB | |
event.test | H A D | 20-Jun-2008 | 25.3 KiB | |
exec.test | H A D | 11-Mar-2008 | 25.5 KiB | |
execute.test | H A D | 13-Jun-2009 | 30.3 KiB | |
expr-old.test | H A D | 13-Dec-2007 | 46.2 KiB | |
expr.test | H A D | 21-Feb-2010 | 333.2 KiB | |
fCmd.test | H A D | 11-Nov-2009 | 83.8 KiB | |
fileName.test | H A D | 05-Jan-2010 | 56.4 KiB | |
fileSystem.test | H A D | 09-Oct-2006 | 34.5 KiB | |
for-old.test | H A D | 19-May-2004 | 2 KiB | |
for.test | H A D | 09-Oct-2006 | 24.5 KiB | |
foreach.test | H A D | 14-Mar-2008 | 6.9 KiB | |
format.test | H A D | 31-Jul-2009 | 20 KiB | |
get.test | H A D | 08-Aug-2005 | 4.4 KiB | |
history.test | H A D | 19-May-2004 | 7.9 KiB | |
http.test | H A D | 10-Apr-2009 | 16.9 KiB | |
httpd | H A D | 10-Apr-2009 | 5.6 KiB | |
httpold.test | H A D | 19-May-2004 | 7.7 KiB | |
if-old.test | H A D | 27-Mar-2003 | 4.7 KiB | |
if.test | H A D | 09-Oct-2006 | 26.2 KiB | |
incr-old.test | H A D | 09-Oct-2006 | 2.8 KiB | |
incr.test | H A D | 13-Dec-2007 | 17 KiB | |
indexObj.test | H A D | 06-Apr-2006 | 5.3 KiB | |
info.test | H A D | 03-Aug-2010 | 51.8 KiB | |
init.test | H A D | 13-Dec-2007 | 6.3 KiB | |
interp.test | H A D | 29-Dec-2009 | 95.1 KiB | |
io.test | H A D | 12-Nov-2009 | 226.5 KiB | |
ioCmd.test | H A D | 03-Aug-2010 | 116 KiB | |
iogt.test | H A D | 03-Nov-2006 | 20.8 KiB | |
ioUtil.test | H A D | 13-Dec-2007 | 12.6 KiB | |
join.test | H A D | 19-May-2004 | 1.6 KiB | |
license.terms | H A D | 04-Aug-2010 | 2.2 KiB | |
lindex.test | H A D | 13-Dec-2007 | 12.7 KiB | |
link.test | H A D | 13-Dec-2007 | 10.7 KiB | |
linsert.test | H A D | 10-May-2005 | 3.5 KiB | |
list.test | H A D | 24-Jul-2003 | 4 KiB | |
listObj.test | H A D | 18-Mar-2010 | 7 KiB | |
llength.test | H A D | 19-May-2004 | 1.3 KiB | |
load.test | H A D | 13-Dec-2007 | 8.6 KiB | |
lrange.test | H A D | 10-May-2005 | 3 KiB | |
lrepeat.test | H A D | 06-Oct-2003 | 1.9 KiB | |
lreplace.test | H A D | 10-May-2005 | 4.2 KiB | |
lsearch.test | H A D | 13-Dec-2007 | 16.2 KiB | |
lset.test | H A D | 22-Jun-2010 | 14.5 KiB | |
lsetComp.test | H A D | 22-Jun-2010 | 16.1 KiB | |
macOSXFCmd.test | H A D | 18-Aug-2006 | 7.2 KiB | |
macOSXLoad.test | H A D | 16-Dec-2006 | 1.2 KiB | |
main.test | H A D | 13-Dec-2007 | 28.5 KiB | |
mathop.test | H A D | 02-Jul-2010 | 53.2 KiB | |
misc.test | H A D | 09-Oct-2006 | 2.2 KiB | |
msgcat.test | H A D | 13-Aug-2008 | 16.2 KiB | |
namespace-old.test | H A D | 13-Dec-2007 | 32.6 KiB | |
namespace.test | H A D | 21-May-2008 | 88.7 KiB | |
notify.test | H A D | 06-Oct-2003 | 8.6 KiB | |
obj.test | H A D | 13-Dec-2007 | 23.6 KiB | |
opt.test | H A D | 19-May-2004 | 7.3 KiB | |
package.test | H A D | 10-Apr-2000 | 3.8 KiB | |
parse.test | H A D | 21-May-2008 | 44.2 KiB | |
parseExpr.test | H A D | 13-Dec-2007 | 61.4 KiB | |
parseOld.test | H A D | 09-Oct-2006 | 15.8 KiB | |
pid.test | H A D | 19-May-2004 | 1.9 KiB | |
pkg.test | H A D | 13-Dec-2007 | 39.2 KiB | |
pkgMkIndex.test | H A D | 02-Nov-2006 | 19.4 KiB | |
platform.test | H A D | 05-Dec-2006 | 2 KiB | |
proc-old.test | H A D | 09-Oct-2006 | 14.8 KiB | |
proc.test | H A D | 29-Oct-2009 | 12.2 KiB | |
pwd.test | H A D | 19-May-2004 | 1,007 | |
README | H A D | 01-Apr-2003 | 4.4 KiB | |
reg.test | H A D | 29-Oct-2009 | 35.6 KiB | |
regexp.test | H A D | 12-Aug-2010 | 32 KiB | |
regexpComp.test | H A D | 22-Aug-2008 | 26.3 KiB | |
registry.test | H A D | 11-Nov-2009 | 28.3 KiB | |
remote.tcl | H A D | 15-Apr-1999 | 4.1 KiB | |
rename.test | H A D | 19-May-2004 | 5.5 KiB | |
result.test | H A D | 24-Mar-2010 | 4.7 KiB | |
safe.test | H A D | 30-Dec-2009 | 18.1 KiB | |
scan.test | H A D | 25-Apr-2006 | 26 KiB | |
security.test | H A D | 19-May-2004 | 933 | |
set-old.test | H A D | 13-Dec-2007 | 29.8 KiB | |
set.test | H A D | 13-Feb-2008 | 17.3 KiB | |
socket.test | H A D | 11-Mar-2008 | 44.9 KiB | |
source.test | H A D | 21-Mar-2006 | 7.9 KiB | |
split.test | H A D | 19-May-2004 | 2.4 KiB | |
stack.test | H A D | 06-Jan-2010 | 3 KiB | |
string.test | H A D | 06-Jan-2009 | 53.9 KiB | |
stringComp.test | H A D | 13-Dec-2007 | 21.1 KiB | |
stringObj.test | H A D | 30-Mar-2009 | 17.5 KiB | |
subst.test | H A D | 26-Oct-2004 | 8.9 KiB | |
switch.test | H A D | 21-Mar-2008 | 20.8 KiB | |
tcltest.test | H A D | 03-Nov-2009 | 49.7 KiB | |
thread.test | H A D | 18-Oct-2009 | 7.8 KiB | |
timer.test | H A D | 09-Nov-2005 | 14.4 KiB | |
tm.test | H A D | 29-Aug-2005 | 8.5 KiB | |
trace.test | H A D | 13-Dec-2007 | 79.7 KiB | |
unixFCmd.test | H A D | 21-Mar-2006 | 12.5 KiB | |
unixFile.test | H A D | 23-Jun-2004 | 1.9 KiB | |
unixInit.test | H A D | 03-Nov-2006 | 13.8 KiB | |
unixNotfy.test | H A D | 01-Nov-2005 | 3.2 KiB | |
unknown.test | H A D | 19-May-2004 | 1.9 KiB | |
unload.test | H A D | 16-Dec-2006 | 10.5 KiB | |
uplevel.test | H A D | 19-May-2004 | 3.2 KiB | |
upvar.test | H A D | 13-Dec-2007 | 13.2 KiB | |
utf.test | H A D | 01-May-2007 | 9.8 KiB | |
util.test | H A D | 14-Oct-2008 | 36.7 KiB | |
var.test | H A D | 03-Aug-2010 | 24.5 KiB | |
while-old.test | H A D | 09-Oct-2006 | 3.3 KiB | |
while.test | H A D | 09-Oct-2006 | 13.9 KiB | |
winConsole.test | H A D | 02-Nov-2006 | 1.2 KiB | |
winDde.test | H A D | 10-May-2005 | 14.9 KiB | |
winFCmd.test | H A D | 11-Nov-2009 | 39.5 KiB | |
winFile.test | H A D | 23-Oct-2008 | 6.9 KiB | |
winNotify.test | H A D | 23-Jun-2004 | 3.8 KiB | |
winPipe.test | H A D | 03-Nov-2006 | 17.3 KiB | |
winTime.test | H A D | 23-Jun-2004 | 2 KiB |
README
1README -- Tcl test suite design document. 2 3RCS: @(#) $Id: README,v 1.12 2003/04/01 19:17:21 dgp Exp $ 4 5Contents: 6--------- 7 8 1. Introduction 9 2. Running tests 10 3. Adding tests 11 4. Incompatibilities with prior Tcl versions 12 131. Introduction: 14---------------- 15 16This directory contains a set of validation tests for the Tcl commands 17and C Library procedures for Tcl. Each of the files whose name ends 18in ".test" is intended to fully exercise the functions in the C source 19file that corresponds to the file prefix. The C functions and/or Tcl 20commands tested by a given file are listed in the first line of the 21file. 22 232. Running tests: 24----------------- 25 26We recommend that you use the "test" target of Tcl's Makefile to run 27the test suite. From the directory in which you build Tcl, simply 28type "make test". This will create a special executable named 29tcltest in which the testing scripts will be evaluated. To create 30the tcltest executable without running the test suite, simple type 31"make tcltest". 32 33All the configuration options of the tcltest package are available 34during a "make test" by defining the TESTFLAGS environment variable. 35For example,if you wish to run only those tests in the file append.test, 36you can type: 37 38 make test TESTFLAGS="-file append.test" 39 40For interactive testing, the Tcl Makefile provides the "runtest" target. 41Type "make runtest" in your build directory, and the tcltest executable 42will be created, if necessary, then it will run interactively. At the 43command prompt, you may type any Tcl commands. If you type 44"source ../tests/all.tcl", the test suite will run. You may use the 45tcltest::configure command to configure the test suite run as an 46alternative to command line options via TESTFLAGS. You might also 47wish to use the tcltest::testConstraint command to select the constraints 48that govern which tests are run. See the documentation for the tcltest 49package for details. 50 513. Adding tests: 52---------------- 53 54Please see the tcltest man page for more information regarding how to 55write and run tests. 56 57Please note that the all.tcl file will source your new test file if 58the filename matches the tests/*.test pattern (as it should). The 59names of test files that contain regression (or glass-box) tests 60should correspond to the Tcl or C code file that they are testing. 61For example, the test file for the C file "tclCmdAH.c" is 62"cmdAH.test". Test files that contain black-box tests may not 63correspond to any Tcl or C code file so they should match the pattern 64"*_bb.test". 65 66Be sure your new test file can be run from any working directory. 67 68Be sure no temporary files are left behind by your test file. 69Use [tcltest::makeFile], [tcltest::removeFile], and [tcltest::cleanupTests] 70properly to be sure of this. 71 72Be sure your tests can run cross-platform in both a build environment 73as well as an installation environment. If your test file contains 74tests that should not be run in one or more of those cases, please use 75the constraints mechanism to skip those tests. 76 774. Incompatibilities of package tcltest 2.1 with 78 testing machinery of very old versions of Tcl: 79------------------------------------------------ 80 811) Global variables such as VERBOSE, TESTS, and testConfig of the 82 old machinery correspond to the [configure -verbose], 83 [configure -match], and [testConstraint] commands of tcltest 2.1, 84 respectively. 85 862) VERBOSE values were longer numeric. [configure -verbose] values 87 are lists of keywords. 88 893) When you run "make test", the working dir for the test suite is now 90 the one from which you called "make test", rather than the "tests" 91 directory. This change allows for both unix and windows test 92 suites to be run simultaneously without interference with each 93 other or with existing files. All tests must now run independently 94 of their working directory. 95 964) The "all" file is now called "all.tcl" 97 985) The "defs" and "defs.tcl" files no longer exist. 99 1006) Instead of creating a doAllTests file in the tests directory, to 101 run all nonPortable tests, just use the "-constraints nonPortable" 102 command line flag. If you are running interactively, you can run 103 [tcltest::testConstraint nonPortable 1] (after loading the tcltest 104 package). 105 1067) Direct evaluation of the *.test files by the "source" command is no 107 longer recommended. Instead, "source all.tcl" and use the "-file" and 108 "-notfile" options of tcltest::configure to control which *.test files 109 are evaluated. 110