From c99437b6b643f14bb0cad6e38ecf813f45a41e71 Mon Sep 17 00:00:00 2001 From: jenn Date: Tue, 29 Jun 1999 20:14:10 +0000 Subject: Added flags -limitconstraints, -preservecore, -help, -file, -notfile, -relateddir, and -asidefromdir to tcltest.tcl. Also added exported proc ::tcltest::getMatchingTestFiles to tcltest.tcl. Modified documentation to match and all.tcl to use the new functionality instead of implementing -file itself. Changed some test names in winPipe.test to remove duplicates. --- doc/tcltest.n | 191 ++++++++++++++---- library/tcltest/pkgIndex.tcl | 9 +- library/tcltest/tcltest.tcl | 427 +++++++++++++++++++++++++++++++++------- library/tcltest1.0/pkgIndex.tcl | 9 +- library/tcltest1.0/tcltest.tcl | 427 +++++++++++++++++++++++++++++++++------- tests/all.tcl | 46 +---- tests/winPipe.test | 18 +- 7 files changed, 911 insertions(+), 216 deletions(-) diff --git a/doc/tcltest.n b/doc/tcltest.n index d5feea6..b065333 100644 --- a/doc/tcltest.n +++ b/doc/tcltest.n @@ -6,7 +6,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: tcltest.n,v 1.1 1999/06/26 03:47:59 jenn Exp $ +'\" RCS: @(#) $Id: tcltest.n,v 1.2 1999/06/29 20:14:10 jenn Exp $ '\" .so man.macros .TH "Tcltest" n 8.1 Tcl "Tcl Built-In Commands" @@ -19,7 +19,9 @@ Tcltest \- Test harness support code and utilities .sp \fB::tcltest::test \fIname desc ?constraint? script expectedAnswer\fR .sp -\fB::tcltest::cleanupTests \fI?calledFromAll?\fR +\fB::tcltest::cleanupTests \fI?runningMultipleTests?\fR +.sp +\fB::tcltest::getMatchingTestFiles .sp \fB::tcltest::dotests \fIfile pattern\fR .sp @@ -91,6 +93,11 @@ of files created without the \fB::tcltest::makeFile\fR command are printed. This command also restores the original shell environment. The default value for \fIcalledFromAll\fR is false. .TP +\fB::tcltest::getMatchingTestFiles\fP +This command is used when you want to run multiple test files. It returns +the list of tests that should be sourced in an 'all.tcl' file. See the +section \fI"Running test files"\fR for more information. +.TP \fB::tcltest::dotests\fP \fIfile pattern\fR Source a test file and run tests of the specified pattern. .TP @@ -193,6 +200,40 @@ the fly using the ::tcltest::makeFile procedure. Files created by the The argument will be compared against the result of evaluating the