1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/contrib/tcl/tests
1997-11-27 19:49:05 +00:00
..
policies Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
all Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
append.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
assocd.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
async.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
basic.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
binary.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
case.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
clock.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
cmdAH.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
cmdIL.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
cmdInfo.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
compile.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
concat.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
dcall.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
defs Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
dstring.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
env.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
error.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
eval.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
event.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
exec.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
execute.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
expr-old.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
expr.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
fCmd.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
fhandle.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
fileName.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
for-old.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
for.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
foreach.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
format.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
get.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
history.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
http.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
httpold.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
if-old.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
if.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
incr-old.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
incr.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
indexObj.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
info.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
init.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
interp.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
io.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
ioCmd.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
join.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
license.terms Import tcl7.5p1 1996-09-18 14:12:34 +00:00
lindex.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
link.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
linsert.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
list.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
listObj.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
llength.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
load.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
lrange.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
lreplace.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
lsearch.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
lsort.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
macFCmd.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
misc.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
namespace-old.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
namespace.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
obj.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
opt.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
osa.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
parse.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
pid.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
pkg.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
proc-old.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
proc.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
pwd.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
README Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
regexp.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
registry.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
remote.tcl Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
rename.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
resource.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
safe.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
scan.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
set-old.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
set.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
socket.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
source.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
split.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
string.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
stringObj.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
subst.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
switch.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
timer.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
trace.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
unixFCmd.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
unixNotfy.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
unknown.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
uplevel.test Tcl 7.5, various makefiles will be updated to use these sources as soon 1996-06-26 06:06:43 +00:00
upvar.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
util.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
var.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
while-old.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
while.test Upgrade to 8.0 release. 1997-10-01 13:19:13 +00:00
winFCmd.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00
winNotify.test Import TCL release 8.0 beta 2. 1997-07-25 19:27:55 +00:00
winPipe.test Import TCL v8.0 PL2. 1997-11-27 19:49:05 +00:00

Tcl Test Suite
--------------

SCCS: @(#) README 1.6 96/04/17 10:51:11

This directory contains a set of validation tests for the Tcl
commands.  Each of the files whose name ends in ".test" is
intended to fully exercise one or a few Tcl commands.  The
commands tested by a given file are listed in the first line
of the file.

You can run the tests in two ways:
    (a) type "make test" in ../unix; this will run all of the tests.
    (b) start up tcltest in this directory, then "source" the test
        file (for example, type "source parse.test").  To run all
	of the tests, type "source all".
In either case no output will be generated if all goes well, except
for a listing of the tests..  If there are errors then additional
messages will appear in the format described below.  Note: don't
run the tests as superuser, since this will cause several of the tests
to fail.

The rest of this file provides additional information on the
features of the testing environment.

This approach to testing was designed and initially implemented
by Mary Ann May-Pumphrey of Sun Microsystems.  Many thanks to
her for donating her work back to the public Tcl release.

Definitions file:
-----------------

The file "defs" defines a collection of procedures and variables
used to run the tests.  It is read in automatically by each of the
.test files if needed, but once it has been read once it will not
be read again by the .test files.  If you change defs while running
tests you'll have to "source" it by hand to load its new contents.

Test output:
------------

Normally, output only appears when there are errors.  However, if
the variable VERBOSE is set to 1 then tests will be run in "verbose"
mode and output will be generated for each test regardless of
whether it succeeded or failed.  Test output consists of the
following information:

    - the test identifier (which can be used to locate the test code
	    in the .test file)
    - a brief description of the test
    - the contents of the test code
    - the actual results produced by the tests
    - a "PASSED" or "FAILED" message
    - the expected results (if the test failed)

You can set VERBOSE either interactively (after the defs file has been
read in), or you can change the default value in "defs".

Selecting tests for execution:
------------------------------

Normally, all the tests in a file are run whenever the file is
"source"d.  However, you can select a specific set of tests using
the global variable TESTS.  This variable contains a pattern;  any
test whose identifier matches TESTS will be run.  For example,
the following interactive command causes all of the "for" tests in
groups 2 and 4 to be executed:

    set TESTS {for-[24]*}

TESTS defaults to *, but you can change the default in "defs" if
you wish.

Saving keystrokes:
------------------

A convenience procedure named "dotests" is included in file
"defs".  It takes two arguments--the name of the test file (such
as "parse.test"), and a pattern selecting the tests you want to
execute.  It sets TESTS to the second argument, calls "source" on
the file specified in the first argument, and restores TESTS to
its pre-call value at the end.

Batch vs. interactive execution:
--------------------------------

The tests can be run in either batch or interactive mode.  Batch
mode refers to using I/O redirection from a UNIX shell.  For example,
the following command causes the tests in the file named "parse.test"
to be executed:

    tclTest < parse.test > parse.test.results

Users who want to execute the tests in this fashion need to first
ensure that the file "defs" has proper values for the global
variables that control the testing environment (VERBOSE and TESTS).