• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Jun-2021-

auto0/H17-Jun-2021-8244

READMEH A D07-Jun-20214.3 KiB10884

aaa_exit.testH A D07-Jun-20211.6 KiB5549

all.tclH A D07-Jun-20211,012 3216

append.testH A D07-Jun-202110.1 KiB357340

appendComp.testH A D07-Jun-202111.8 KiB477459

apply.testH A D07-Jun-20219.8 KiB322295

assemble.testH A D07-Jun-202162.4 KiB3,3603,250

assocd.testH A D07-Jun-20212.3 KiB7163

async.testH A D07-Jun-20216.5 KiB235223

autoMkindex.testH A D07-Jun-202111.4 KiB373338

basic.testH A D07-Jun-202131.8 KiB1,029915

binary.testH A D07-Jun-2021106.8 KiB2,9792,887

case.testH A D07-Jun-20213 KiB9588

chan.testH A D07-Jun-20219.9 KiB276247

chanio.testH A D07-Jun-2021249.6 KiB7,7897,676

clock.testH A D07-Jun-20211.8 MiB37,04236,863

cmdAH.testH A D07-Jun-202158.4 KiB1,7891,730

cmdIL.testH A D07-Jun-202130.4 KiB857840

cmdInfo.testH A D07-Jun-20213.6 KiB11097

cmdMZ.testH A D07-Jun-202118.1 KiB510479

compExpr-old.testH A D07-Jun-202135.2 KiB650615

compExpr.testH A D07-Jun-202117.5 KiB421404

compile.testH A D07-Jun-202138.6 KiB1,1221,083

concat.testH A D07-Jun-20211.6 KiB5850

config.testH A D07-Jun-20212.2 KiB6155

coroutine.testH A D07-Jun-202126.4 KiB1,025997

dcall.testH A D07-Jun-20211.4 KiB4640

dict.testH A D07-Jun-202163.7 KiB2,1632,118

dstring.testH A D07-Jun-202113.8 KiB488476

encoding.testH A D07-Jun-202124.2 KiB779721

env.testH A D07-Jun-202110.6 KiB439372

error.testH A D07-Jun-202136.6 KiB1,2121,152

eval.testH A D07-Jun-20212.2 KiB9083

event.testH A D07-Jun-202128.1 KiB964939

exec.testH A D07-Jun-202127.8 KiB730682

execute.testH A D07-Jun-202135.9 KiB1,2021,166

expr-old.testH A D07-Jun-202146.4 KiB1,2111,135

expr.testH A D07-Jun-2021343.6 KiB7,4657,337

fCmd.testH A D07-Jun-202185.7 KiB2,5722,515

fileName.testH A D07-Jun-202155.7 KiB1,6511,618

fileSystem.testH A D07-Jun-202134.9 KiB995966

fileSystemEncoding.testH A D07-Jun-20211.3 KiB5644

for-old.testH A D07-Jun-20211.8 KiB7267

for.testH A D07-Jun-202138.4 KiB1,3611,330

foreach.testH A D07-Jun-20217.4 KiB297278

format.testH A D07-Jun-202123.9 KiB644616

get.testH A D07-Jun-20215.6 KiB126117

history.testH A D07-Jun-20219.4 KiB312287

http.testH A D07-Jun-202141.1 KiB1,1411,116

http11.testH A D07-Jun-202133.9 KiB924858

httpPipeline.testH A D07-Jun-202123.4 KiB869774

httpTest.tclH A D07-Jun-202117.4 KiB510271

httpTestScript.tclH A D07-Jun-202113.3 KiB510295

httpcookie.testH A D07-Jun-202125 KiB876863

httpdH A D07-Jun-20216.3 KiB251225

httpd11.tclH A D07-Jun-20218.3 KiB265225

if-old.testH A D07-Jun-20214.6 KiB163155

if.testH A D07-Jun-202129.5 KiB1,2831,266

incr-old.testH A D07-Jun-20212.7 KiB9387

incr.testH A D07-Jun-202117.9 KiB535524

indexObj.testH A D07-Jun-20216.4 KiB167154

info.testH A D07-Jun-202179.1 KiB2,5902,330

init.testH A D07-Jun-20216.9 KiB219199

internals.tclH A D07-Jun-20213 KiB9660

interp.testH A D07-Jun-2021102.1 KiB3,6803,617

io.testH A D07-Jun-2021257.7 KiB8,8548,568

ioCmd.testH A D07-Jun-2021124.5 KiB3,9093,756

ioTrans.testH A D07-Jun-202158.3 KiB2,0962,014

iogt.testH A D07-Jun-202124.5 KiB956872

join.testH A D07-Jun-20211.7 KiB6153

license.termsH A D07-Jun-20212.2 KiB4136

lindex.testH A D07-Jun-202113.7 KiB469435

link.testH A D07-Jun-202132.3 KiB898867

linsert.testH A D07-Jun-20213.5 KiB120113

list.testH A D07-Jun-20215.2 KiB153142

listObj.testH A D07-Jun-20217.1 KiB210193

llength.testH A D07-Jun-20211.2 KiB4237

lmap.testH A D07-Jun-202112.6 KiB472457

load.testH A D07-Jun-202110.2 KiB258233

lpop.testH A D07-Jun-20214 KiB146132

lrange.testH A D07-Jun-202110.5 KiB258241

lrepeat.testH A D07-Jun-20211.9 KiB8580

lreplace.testH A D07-Jun-20217.5 KiB247236

lsearch.testH A D07-Jun-202125.2 KiB709673

lset.testH A D07-Jun-202116.6 KiB482456

lsetComp.testH A D07-Jun-202115.8 KiB432405

macOSXFCmd.testH A D07-Jun-20217.2 KiB182173

macOSXLoad.testH A D07-Jun-20211.1 KiB3430

main.testH A D07-Jun-202127.8 KiB1,2941,209

mathop.testH A D07-Jun-202156.9 KiB1,4071,350

misc.testH A D07-Jun-20212.1 KiB7566

msgcat.testH A D07-Jun-202135.8 KiB1,3671,223

namespace-old.testH A D07-Jun-202135.7 KiB862846

namespace.testH A D07-Jun-2021113.2 KiB3,5003,383

notify.testH A D07-Jun-20218.6 KiB328299

nre.testH A D07-Jun-20219.9 KiB454427

obj.testH A D07-Jun-202122.2 KiB600561

oo.testH A D07-Jun-2021144.6 KiB5,4925,426

ooNext2.testH A D07-Jun-202125 KiB1,0661,045

ooUtil.testH A D07-Jun-202114.8 KiB564551

opt.testH A D07-Jun-20217.2 KiB246224

package.testH A D07-Jun-202147 KiB1,3971,363

parse.testH A D07-Jun-202147.8 KiB1,1391,095

parseExpr.testH A D07-Jun-202165.1 KiB1,0891,052

parseOld.testH A D07-Jun-202114.1 KiB488454

pid.testH A D07-Jun-20211.8 KiB5853

pkgIndex.tclH A D07-Jun-202184 31

pkgMkIndex.testH A D07-Jun-202119.5 KiB703610

platform.testH A D07-Jun-20212.7 KiB8570

proc-old.testH A D07-Jun-202114.6 KiB518502

proc.testH A D07-Jun-202113.5 KiB417397

process.testH A D07-Jun-202110.5 KiB342328

pwd.testH A D07-Jun-2021933 3328

reg.testH A D07-Jun-202141.9 KiB1,2361,120

regexp.testH A D07-Jun-202142.8 KiB1,2111,175

regexpComp.testH A D07-Jun-202126.7 KiB1,000963

registry.testH A D07-Jun-202132.1 KiB693669

remote.tclH A D07-Jun-20214.1 KiB160132

rename.testH A D07-Jun-20215.8 KiB193175

resolver.testH A D07-Jun-20218.2 KiB319291

result.testH A D07-Jun-20215.3 KiB150137

safe-stock.testH A D07-Jun-202110.4 KiB249226

safe-zipfs.testH A D07-Jun-202136.8 KiB728667

safe.testH A D07-Jun-202167.1 KiB1,6701,591

scan.testH A D07-Jun-202129.6 KiB884854

security.testH A D07-Jun-2021891 4636

set-old.testH A D07-Jun-202130.6 KiB948920

set.testH A D07-Jun-202118.2 KiB569546

socket.testH A D07-Jun-202180.1 KiB2,5932,527

source.testH A D07-Jun-20218.8 KiB312299

split.testH A D07-Jun-20212.6 KiB9589

stack.testH A D07-Jun-20211.8 KiB6557

string.testH A D07-Jun-202199.7 KiB2,6442,584

stringObj.testH A D07-Jun-202118 KiB486464

subst.testH A D07-Jun-202110.1 KiB312292

switch.testH A D07-Jun-202121.5 KiB773752

tailcall.testH A D07-Jun-202116 KiB717669

tcltest.testH A D07-Jun-202150.3 KiB1,8471,727

tcltests.tclH A D07-Jun-20211.4 KiB5947

thread.testH A D07-Jun-202152.2 KiB1,4521,423

timer.testH A D07-Jun-202115.2 KiB606585

tm.testH A D07-Jun-20218.2 KiB245223

trace.testH A D07-Jun-202182.7 KiB2,6892,484

unixFCmd.testH A D07-Jun-202113.7 KiB442408

unixFile.testH A D07-Jun-20211.9 KiB6658

unixForkEvent.testH A D07-Jun-20211.4 KiB4843

unixInit.testH A D07-Jun-202113.9 KiB409395

unixNotfy.testH A D07-Jun-20212.7 KiB9892

unknown.testH A D07-Jun-20211.8 KiB6859

unload.testH A D07-Jun-202112.8 KiB311295

uplevel.testH A D07-Jun-20218.5 KiB333312

upvar.testH A D07-Jun-202115.5 KiB631605

utf.testH A D07-Jun-202148 KiB1,3881,347

util.testH A D07-Jun-2021139.2 KiB4,1924,135

var.testH A D07-Jun-202144.5 KiB1,5061,470

while-old.testH A D07-Jun-20213.3 KiB120112

while.testH A D07-Jun-202115.7 KiB703684

winConsole.testH A D07-Jun-20211.1 KiB4936

winDde.testH A D07-Jun-202116.8 KiB493462

winFCmd.testH A D07-Jun-202142.5 KiB1,4281,383

winFile.testH A D07-Jun-20216.5 KiB222205

winNotify.testH A D07-Jun-20213.8 KiB163153

winPipe.testH A D07-Jun-202120.8 KiB627578

winTime.testH A D07-Jun-20212.2 KiB7061

zipfs.testH A D07-Jun-202115.9 KiB411395

zlib.testH A D07-Jun-202136.9 KiB1,0951,074

README

1README -- Tcl test suite design document.
2
3Contents:
4---------
5
6    1. Introduction
7    2. Running tests
8    3. Adding tests
9    4. Incompatibilities with prior Tcl versions
10
111. Introduction:
12----------------
13
14This directory contains a set of validation tests for the Tcl commands
15and C Library procedures for Tcl.  Each of the files whose name ends
16in ".test" is intended to fully exercise the functions in the C source
17file that corresponds to the file prefix.  The C functions and/or Tcl
18commands tested by a given file are listed in the first line of the
19file.
20
212. Running tests:
22-----------------
23
24We recommend that you use the "test" target of Tcl's Makefile to run
25the test suite.  From the directory in which you build Tcl, simply
26type "make test".  This will create a special executable named
27tcltest in which the testing scripts will be evaluated.  To create
28the tcltest executable without running the test suite, simple type
29"make tcltest".
30
31All the configuration options of the tcltest package are available
32during a "make test" by defining the TESTFLAGS environment variable.
33For example,if you wish to run only those tests in the file append.test,
34you can type:
35
36	make test TESTFLAGS="-file append.test"
37
38For interactive testing, the Tcl Makefile provides the "runtest" target.
39Type "make runtest" in your build directory, and the tcltest executable
40will be created, if necessary, then it will run interactively.  At the
41command prompt, you may type any Tcl commands.  If you type
42"source ../tests/all.tcl", the test suite will run.  You may use the
43tcltest::configure command to configure the test suite run as an
44alternative to command line options via TESTFLAGS.  You might also
45wish to use the tcltest::testConstraint command to select the constraints
46that govern which tests are run.  See the documentation for the tcltest
47package for details.
48
493. Adding tests:
50----------------
51
52Please see the tcltest man page for more information regarding how to
53write and run tests.
54
55Please note that the all.tcl file will source your new test file if
56the filename matches the tests/*.test pattern (as it should).  The
57names of test files that contain regression (or glass-box) tests
58should correspond to the Tcl or C code file that they are testing.
59For example, the test file for the C file "tclCmdAH.c" is
60"cmdAH.test".  Test files that contain black-box tests may not
61correspond to any Tcl or C code file so they should match the pattern
62"*_bb.test".
63
64Be sure your new test file can be run from any working directory.
65
66Be sure no temporary files are left behind by your test file.
67Use [tcltest::makeFile], [tcltest::removeFile], and [tcltest::cleanupTests]
68properly to be sure of this.
69
70Be sure your tests can run cross-platform in both a build environment
71as well as an installation environment.  If your test file contains
72tests that should not be run in one or more of those cases, please use
73the constraints mechanism to skip those tests.
74
754. Incompatibilities of package tcltest 2.1 with
76   testing machinery of very old versions of Tcl:
77------------------------------------------------
78
791) Global variables such as VERBOSE, TESTS, and testConfig of the
80   old machinery correspond to the [configure -verbose],
81   [configure -match], and [testConstraint] commands of tcltest 2.1,
82   respectively.
83
842) VERBOSE values were longer numeric.  [configure -verbose] values
85   are lists of keywords.
86
873) When you run "make test", the working dir for the test suite is now
88   the one from which you called "make test", rather than the "tests"
89   directory.  This change allows for both unix and windows test
90   suites to be run simultaneously without interference with each
91   other or with existing files.  All tests must now run independently
92   of their working directory.
93
944) The "all" file is now called "all.tcl"
95
965) The "defs" and "defs.tcl" files no longer exist.
97
986) Instead of creating a doAllTests file in the tests directory, to
99   run all nonPortable tests, just use the "-constraints nonPortable"
100   command line flag.  If you are running interactively, you can run
101   [tcltest::testConstraint nonPortable 1] (after loading the tcltest
102   package).
103
1047) Direct evaluation of the *.test files by the "source" command is no
105   longer recommended.  Instead, "source all.tcl" and use the "-file" and
106   "-notfile" options of tcltest::configure to control which *.test files
107   are evaluated.
108