/
niceSOFT
/
tcl
ОбзорДокументацияВойти
/
niceSOFT
/
tcl
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
tcl/
tests/
..
auto0

Add example files for use in tests/safe.test; add tests of the files themselves.

6 лет назад
unicodeTestVectors

Add Unicode 17 grapheme tests

месяц назад
zipfiles

Add missing zipfs test zip

3 года назад
README

occurance -> occurrence.

6 лет назад
aaa_exit.test

merge 9.0, code deduplication; increase timouts detecting exit hangs for mem-debug, etc

год назад
abstractlist.test

Corrections to lgen and function naming in the testing abs-list code

2 месяца назад
all.tcl

cherry-pick [9b5c0dbbc296ad67]: tests/all.tcl: don't overwrite argument -testdir (may be supplied in args too)

2 года назад
append.test

Don't bother unrelated error-messages

2 года назад
appendComp.test

merge 8.6

год назад
apply.test

Don't bother unrelated error-messages

2 года назад
assemble.test

Add [info object creationid] to fully compiled operations; simplify some instruction descriptors

год назад
assemble1.bench

Remove unnecessary end-of-line spacing in test-cases

5 лет назад
assocd.test

TIP 590: Recommend lowercase Package Names

6 лет назад
async.test

Simplify tcl::build-info parsing for testConstraint's

год назад
auto-files.zip

safe.test - add zipfile and tests of loading files from zipfs

6 лет назад
autoMkindex.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
basic.test

Whitespace changes

3 месяца назад
bigdata.test

More constraint name repair

год назад
binary.test

Merge 9.0 - Fix [165b1039] - error message for byte arrays

3 месяца назад
brodnik.test

Add constraints to skip tests that require tcltest when running with tclsh

5 месяцев назад
chan.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
chanio.test

Proposed fix for [6e82720e14].

15 дней назад
clock-ivm.test

cherry-picked from 9.0, fixes [51aa53616067cb63]: free scan - fixed hours only TZ (±1 or ±01); adjust clock tests (runable without tzdata with system TZs only, also using -constraints clock-no-tzdata); optimized numeric zone detection; resolve dozen conflicts (bison/yacc only left 5 shift/reduce and no reduce/reduce conflicts anymore).

5 месяцев назад
clock-no-tzdata.test

cherry-picked from 9.0, fixes [51aa53616067cb63]: free scan - fixed hours only TZ (±1 or ±01); adjust clock tests (runable without tzdata with system TZs only, also using -constraints clock-no-tzdata); optimized numeric zone detection; resolve dozen conflicts (bison/yacc only left 5 shift/reduce and no reduce/reduce conflicts anymore).

5 месяцев назад
clock.test

cherry-picked from 9.0, fixes [51aa53616067cb63]: free scan - fixed hours only TZ (±1 or ±01); adjust clock tests (runable without tzdata with system TZs only, also using -constraints clock-no-tzdata); optimized numeric zone detection; resolve dozen conflicts (bison/yacc only left 5 shift/reduce and no reduce/reduce conflicts anymore).

5 месяцев назад
cmdAH.test

Merge 9.0

год назад
cmdIL.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
cmdInfo.test

Deprecate Tcl_CreateCommand() too. Use Tcl_CreateObjCommand2() in all testcases

2 года назад
cmdMZ.test

Indenting consistancy

10 месяцев назад
compExpr-old.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
compExpr.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
compile.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
concat.test

Now that all Tcl source files are UTF-8 by default, we can use the ©-sign whenever reasonable.

6 лет назад
config.test

Fix pkgconfig-1.1 testcase

8 месяцев назад
coroutine.test

Make [yieldto] work with {*}; turns out no new opcodes were needed, just a test for a previously-impossible case

год назад
dcall.test

TIP 590: Recommend lowercase Package Names

6 лет назад
dict.test

Merge 9.0

год назад
dstring.test

Since Tcl 8.6 doesn't know about Tcl_Size, don't use it, not even in test comments

3 года назад
encoding.test

Merge 9.0 - Fix [165b1039] - error message for byte arrays

3 месяца назад
encodingVectors.tcl

(cherry-pick): Shorten sequences of multiple blank lines. http -> 2.10.2

4 месяца назад
env.test

Whitespace changes

3 месяца назад
error.test

more Minor indent fixes

год назад
eval.test

Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test.

3 года назад
event.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
exec.test

file lifetime hygiene (Can't create files in general setting, then cleanup in constrained setting)

2 месяца назад
execute.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
expr-old.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
expr.test

Fix [8dd2807066] follow-up: two-argument 'max' had the same problem

9 месяцев назад
fCmd.test

Merge 9.0. No need for 'package require registry' any more

2 месяца назад
fileName.test

Merge 9.0 Fix [e860418c] Windows: glob -dir $dir -tail returns name with leading /

3 месяца назад
fileSystem.test

test hygiene: file lifetime

2 месяца назад
fileSystemEncoding.test

merge 8.6

4 года назад
for-old.test

Now that all Tcl source files are UTF-8 by default, we can use the ©-sign whenever reasonable.

6 лет назад
for.test

(cherry-pick): Ticket [73bb42fb3f] Panic "Buffer Underflow, BUFFER_PADDING not enough" due to not checked encoding decode result. Fix some indenting (spacing) in testcases (all backported from 9.0)

2 года назад
foreach.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
format.test

Simplify tcl::build-info parsing for testConstraint's

год назад
get.test

Follow-up for [0439e1e1a3]: Slow detection of illegal expr argument. Same fix in more places. Only use "list" for real lists

2 года назад
grapheme.test

Consolidate use of ©. Indenting

2 дня назад
history.test

merge 8.6

3 года назад
http.test

Use 9.0's [const] for constants, and move IDNA tests out of http.test into their own file

год назад
http11.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
httpPipeline.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
httpProxy.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
httpProxySquidConfigForEL8.tar.gz

Fix bug 1173760 (proxy server for https). Add http::config options -proxynot, -proxyauth.

4 года назад
httpProxySquidConfigForWindowsDiladele.zip

Improve tests/httpProxy.test. Use constraints and print a message on their usage. Catch unimportant cleanup errors. Use knownBug to control test failures. Print full-file summary by default (not per-ThreadLevel). Pause between tests to avoid flooding the server. Add module twapiTlsPlus and load it when needed. Add example configuration files for Diladele Squid on Windows.

3 года назад
httpTest.tcl

(cherry-pick): Shorten sequences of multiple blank lines. http -> 2.10.2

4 месяца назад
httpTestScript.tcl

(cherry-pick): Shorten sequences of multiple blank lines. http -> 2.10.2

4 месяца назад
httpcookie.test

In no-deprecate mode, don't run tests involving sqlite3. TCL_HASH_TYPE is an internal type, which shouldn't be used by extensions.

год назад
httpd

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
httpd11.tcl

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
icu.test

Disable unsupported icu tests for valgrind as dl_load of icu muddies valgrind output

год назад
icuUcmTests.tcl

(cherry-pick): Shorten sequences of multiple blank lines. http -> 2.10.2

4 месяца назад
idna.test

Use 9.0's [const] for constants, and move IDNA tests out of http.test into their own file

год назад
if-old.test

More ©-sign consolidation

6 лет назад
if.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
incr-old.test

Merge 9.0. Use TclMaxListLength() to determine error-message in stead of converting to a list

2 года назад
incr.test

Fix [2a14c349a8]: inconsistant error-message inTcl_GetNumberFromObj(). With testcase

год назад
indexObj.test

Fix [57daa91ea]: Tcl_GetIntForIndex handling of n-m (m > n). With testcases.

2 года назад
info.test

Fix info frame test levels as test proc now adds two levels - uplevel and the TestOnce proc

2 месяца назад
init.test

Fix [c0f678f28c] - Crash in secondary interp on auto_path reinit

3 месяца назад
internals.tcl

(cherry-pick): Ticket [73bb42fb3f] Panic "Buffer Underflow, BUFFER_PADDING not enough" due to not checked encoding decode result. Fix some indenting (spacing) in testcases (all backported from 9.0)

2 года назад
interp.test

Spacing

2 месяца назад
io.test

Merge 8.6

год назад
ioCmd.test

(cherry-pick): Ticket [73bb42fb3f] Panic "Buffer Underflow, BUFFER_PADDING not enough" due to not checked encoding decode result. Fix some indenting (spacing) in testcases (all backported from 9.0)

2 года назад
ioTrans.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
iogt.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
join.test

Now that all Tcl source files are UTF-8 by default, we can use the ©-sign whenever reasonable.

6 лет назад
lfilter.test

Fix things to work as the TIP now specifies

7 месяцев назад
lindex.test

Remove unnecessary end-of-line spacing in test-cases

5 лет назад
link.test

Don't bother unrelated error-messages

2 года назад
linsert.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
list.test

Fix [e38dce74e2]: Command line built with list not properly quoted

2 года назад
listObj.test

Add tests for memory leaks

год назад
listRep.test

Add tests for more list operations and variable indices (when they have a separate code path from literals)

год назад
listTypes.test

Consolidate use of ©. Indenting

2 дня назад
llength.test

More ©-sign consolidation

6 лет назад
lmap.test

(cherry-pick): Ticket [73bb42fb3f] Panic "Buffer Underflow, BUFFER_PADDING not enough" due to not checked encoding decode result. Fix some indenting (spacing) in testcases (all backported from 9.0)

2 года назад
load.test

Support multiple callback registrations. Multithread safe

3 месяца назад
lpop.test

Tweak tests; still test the same thing, but more succinctly

год назад
lrange.test

Start on TIP 649

год назад
lrepeat.test

First shot at TIP #625 for Tcl 9.0. Mark lrepeat-1.8 as 'knownBug', that's OK for now.

4 года назад
lreplace.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
lsearch.test

(cherry-pick): Bug [5a1aaa20]: lsearch -stride with -subindices and -inline -all gives unexpected result

2 года назад
lseq.test

Merge 9.0. Prepare for split-off 9.1 branch (not planned yet)

3 месяца назад
lset.test

Don't bother unrelated error-messages

2 года назад
lsetComp.test

Merge 8.7

6 лет назад
macOSXFCmd.test

Since -eofchar {} is the default already, no need to specify this over and over again in testcases

2 года назад
macOSXLoad.test

More ©-sign consolidation

6 лет назад
main.test

Merge main

2 месяца назад
mathfunc.test

Duplicate test name

2 месяца назад
mathop.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
misc.test

Don't bother unrelated error-messages

2 года назад
msgcat.test

(cherry-pick): Ticket [73bb42fb3f] Panic "Buffer Underflow, BUFFER_PADDING not enough" due to not checked encoding decode result. Fix some indenting (spacing) in testcases (all backported from 9.0)

2 года назад
mutex.test

Consolidate use of ©. Indenting

2 дня назад
namespace-old.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
namespace.test

Proposed fix for [82d12c9ce3]: unsupported commands should not be available in safe interpreters

9 месяцев назад
notify.test

Merge 8.7

6 лет назад
nre.test

Some of the test failures fixed...

год назад
obj.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
oo.test

Conflict over variable name "id" between tests oo-16.16 and timer-2.1.1

2 месяца назад
ooNext2.test

Bump the patchlevel of TclOO

год назад
ooProp.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
ooUtil.test

Bump the patchlevel of TclOO

год назад
opt.test

Back off version number changes to opt to 0.4.10; API is unchanged and tests were broken

10 месяцев назад
package.test

Fix missing win constraint when package requiring registry

3 месяца назад
parse.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
parseExpr.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
parseOld.test

Merge 8.6

2 года назад
pid.test

Change "channelId" to "channel" in documentation, error-handling and testcases

2 года назад
pkgIndex.tcl

Add lot's of "-encoding utf-8" to our own "source" commands: We are becoming more independant from the system encoding.

2 года назад
pkgMkIndex.test

Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test.

3 года назад
platform.test

Follow-up to [66cd465323]: For Tcl 9.0+, building on 32-bit MacOS is no longer supported

год назад
proc-old.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
proc.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
process.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
pwd.test

More ©-sign consolidation

6 лет назад
range.test

Add empty "range.test": GIT doesn't handling file renames well ....

4 года назад
reg.test

give tests human-readable names

год назад
regexp.test

Bug [cb03e57a] - raise error on empty regexp if variable not resolvable. Update changes

9 месяцев назад
regexpComp.test

Improve bunch of error-messages

2 года назад
registry.test

Use more tcl::registry, when possible

2 месяца назад
remote.tcl

Merge 8.7

2 года назад
rename.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
resolver.test

Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test.

3 года назад
result.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
safe-stock.test

There is no Tcl 8.7

4 месяца назад
safe-stock86.test

Merge 8.6. Add empty "tests/safe-stock86.test", in an attempt to remove this file from the GIT branches (it shouldn't be there, just as in fossil)

6 лет назад
safe-zipfs.test

There is no Tcl 8.7

4 месяца назад
safe.test

Merge 9.0. http -> 2.10.2

4 месяца назад
scan.test

Indenting

год назад
security.test

More ©-sign consolidation

6 лет назад
set-old.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
set.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
socket.test

Remove knownBug constraint

2 месяца назад
source.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
split.test

Merge 8.6. Fix [c9f0520f7e] - Tcl_SplitList memory size computation overflow. No test because not practical to overflow Tcl_Size on 9.0.

год назад
stack.test

Remove unnecessary end-of-line spacing in test-cases

5 лет назад
string.test

Version -> 9.1a2

5 месяцев назад
stringObj.test

Add some testcases

2 года назад
subst.test

merge trunk (optimized TclSubstOptions, etc); reorganizes options (almost alphanumeric, positive group first); optimizes TclSubstOptions - reducing the branch misprediction, etc

2 года назад
switch.test

Tests for [switch -integer]

год назад
tailcall.test

Merge 9.0

год назад
tcltest.test

Spacing

2 месяца назад
tcltests.tcl

merge 9.0

2 месяца назад
thread.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
timer.test

Conflict over variable name "id" between tests oo-16.16 and timer-2.1.1

2 месяца назад
tm.test

Lowercase package names are recommended now

6 лет назад
trace.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
twapiTlsPlus.tcl

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
ucdUtils.tcl

Consolidate use of ©. Indenting

2 дня назад
unicodeNormalize.test

Add tests using grapheme test vectors from UCD. 1646 pass 60 fail. Hangul, RI, LinkingConsonants, Vedic scripts

2 месяца назад
unicodeProperties.test

Add tests using grapheme test vectors from UCD. 1646 pass 60 fail. Hangul, RI, LinkingConsonants, Vedic scripts

2 месяца назад
unixFCmd.test

Merge 8.6

год назад
unixFile.test

Merge 8.6. Add empty "tests/safe-stock86.test", in an attempt to remove this file from the GIT branches (it shouldn't be there, just as in fossil)

6 лет назад
unixForkEvent.test

Correct spelling errors in comments and documentation, but also a non-comment corrections in history.tcl and tcltest.test.

3 года назад
unixInit.test

Fix constraints on unixInit-3.2. See https://sourceforge.net/p/tcl/mailman/message/59255593/

9 месяцев назад
unixNotfy.test

(cherry-pick): Ticket [73bb42fb3f] Panic "Buffer Underflow, BUFFER_PADDING not enough" due to not checked encoding decode result. Fix some indenting (spacing) in testcases (all backported from 9.0)

2 года назад
unknown.test

More ©-sign consolidation

6 лет назад
unload.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
uplevel.test

More ©-sign consolidation

6 лет назад
upvar.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
utf.test

Post-release resolution of test name between 9.0 and 9.1 branches

2 месяца назад
utfext.test

Consolidate use of ©. Indenting

2 дня назад
util.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
var.test

Uncompiled case and test cases

5 месяцев назад
while-old.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
while.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
winConsole.test

Consolidate use of ©. Indenting

2 дня назад
winDde.test

Version -> 9.1b1 for next release cycle

месяц назад
winFCmd.test

Consolidate use of ©. Indenting

2 дня назад
winFile.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
winNotify.test

TIP 590: Recommend lowercase Package Names

6 лет назад
winPipe.test

Fix more test fragility with space-containing directory names

9 месяцев назад
winTime.test

Indenting in testcases. Always use tabs in stead of 8 spaces

2 года назад
word.test

More testcases

3 года назад
zipfs.test

Merge 9.0. Fix [4676f5c78] - corrupted elements from glob -dir . in zipfs

день назад
zlib.test

[9563b8eeec] Add test case with very compressible data

2 месяца назад
README
README -- Tcl test suite design document.
 
Contents:
---------
 
1. Introduction
2. Running tests
3. Adding tests
4. Incompatibilities with prior Tcl versions
 
1. Introduction:
----------------
 
This directory contains a set of validation tests for the Tcl commands
and C Library procedures for Tcl. Each of the files whose name ends
in ".test" is intended to fully exercise the functions in the C source
file that corresponds to the file prefix. The C functions and/or Tcl
commands tested by a given file are listed in the first line of the
file.
 
2. Running tests:
-----------------
 
We recommend that you use the "test" target of Tcl's Makefile to run
the test suite. From the directory in which you build Tcl, simply
type "make test". This will create a special executable named
tcltest in which the testing scripts will be evaluated. To create
the tcltest executable without running the test suite, simple type
"make tcltest".
 
All the configuration options of the tcltest package are available
during a "make test" by defining the TESTFLAGS environment variable.
For example,if you wish to run only those tests in the file append.test,
you can type:
 
make test TESTFLAGS="-file append.test"
 
For interactive testing, the Tcl Makefile provides the "runtest" target.
Type "make runtest" in your build directory, and the tcltest executable
will be created, if necessary, then it will run interactively. At the
command prompt, you may type any Tcl commands. If you type
"source ../tests/all.tcl", the test suite will run. You may use the
tcltest::configure command to configure the test suite run as an
alternative to command line options via TESTFLAGS. You might also
wish to use the tcltest::testConstraint command to select the constraints
that govern which tests are run. See the documentation for the tcltest
package for details.
 
3. Adding tests:
----------------
 
Please see the tcltest man page for more information regarding how to
write and run tests.
 
Please note that the all.tcl file will source your new test file if
the filename matches the tests/*.test pattern (as it should). The
names of test files that contain regression (or glass-box) tests
should correspond to the Tcl or C code file that they are testing.
For example, the test file for the C file "tclCmdAH.c" is
"cmdAH.test". Test files that contain black-box tests may not
correspond to any Tcl or C code file so they should match the pattern
"*_bb.test".
 
Be sure your new test file can be run from any working directory.
 
Be sure no temporary files are left behind by your test file.
Use [tcltest::makeFile], [tcltest::removeFile], and [tcltest::cleanupTests]
properly to be sure of this.
 
Be sure your tests can run cross-platform in both a build environment
as well as an installation environment. If your test file contains
tests that should not be run in one or more of those cases, please use
the constraints mechanism to skip those tests.
 
4. Incompatibilities of package tcltest 2.1 with
testing machinery of very old versions of Tcl:
------------------------------------------------
 
1) Global variables such as VERBOSE, TESTS, and testConfig of the
old machinery correspond to the [configure -verbose],
[configure -match], and [testConstraint] commands of tcltest 2.1,
respectively.
 
2) VERBOSE values were longer numeric. [configure -verbose] values
are lists of keywords.
 
3) When you run "make test", the working dir for the test suite is now
the one from which you called "make test", rather than the "tests"
directory. This change allows for both unix and windows test
suites to be run simultaneously without interference with each
other or with existing files. All tests must now run independently
of their working directory.
 
4) The "all" file is now called "all.tcl"
 
5) The "defs" and "defs.tcl" files no longer exist.
 
6) Instead of creating a doAllTests file in the tests directory, to
run all nonPortable tests, just use the "-constraints nonPortable"
command line flag. If you are running interactively, you can run
[tcltest::testConstraint nonPortable 1] (after loading the tcltest
package).
 
7) Direct evaluation of the *.test files by the "source" command is no
longer recommended. Instead, "source all.tcl" and use the "-file" and
"-notfile" options of tcltest::configure to control which *.test files
are evaluated.