summaryrefslogtreecommitdiffstats
path: root/tests/pkgMkIndex.test
diff options
context:
space:
mode:
authorjenn <jenn>1999-10-19 18:08:35 (GMT)
committerjenn <jenn>1999-10-19 18:08:35 (GMT)
commit6a4211168cd8e6e5bc8214bc4e2b4ac75f6fd977 (patch)
tree69cab503a9d184acbb3fc80f69ff7bee4f2d7038 /tests/pkgMkIndex.test
parent92548c63db304c75eac148990b77793351783c2c (diff)
downloadtcl-6a4211168cd8e6e5bc8214bc4e2b4ac75f6fd977.zip
tcl-6a4211168cd8e6e5bc8214bc4e2b4ac75f6fd977.tar.gz
tcl-6a4211168cd8e6e5bc8214bc4e2b4ac75f6fd977.tar.bz2
* tests/tcltest.test:
* doc/tcltest.n: * library/tcltest1.0/tcltest.tcl: Removed the extra return at the end of the tcltest.tcl file. Applied patches sent in by Andreas Kupries to add helper procs for debug output, add 3 new flags (-testsdir, -load, -loadfile), and internally refactors common code for dealing with paths into separate procedures. [Bug: 2838, 2842]
Diffstat (limited to 'tests/pkgMkIndex.test')
-rw-r--r--tests/pkgMkIndex.test20
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/pkgMkIndex.test b/tests/pkgMkIndex.test
index 52eb048..7fbb909 100644
--- a/tests/pkgMkIndex.test
+++ b/tests/pkgMkIndex.test
@@ -8,13 +8,16 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: pkgMkIndex.test,v 1.11 1999/07/01 17:36:19 jenn Exp $
+# RCS: @(#) $Id: pkgMkIndex.test,v 1.12 1999/10/19 18:08:44 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import ::tcltest::*
}
+set origDir [pwd]
+cd $::tcltest::testsDirectory
+
set fullPkgPath [file join $::tcltest::testsDirectory pkg]
# Add the pkg1 directory to auto_path, so that its packages can be found.
@@ -158,6 +161,8 @@ proc pkgtest::createIndex { args } {
set dirPath [lindex $parsed 1]
set patternList [lindex $parsed 2]
+ file mkdir $dirPath
+
if {[catch {
file delete [file join $dirPath pkgIndex.tcl]
eval pkg_mkIndex $options $dirPath $patternList
@@ -243,7 +248,7 @@ proc pkgtest::runIndex { args } {
set result [list 0 [makePkgList [parseIndex $idxFile]]]
} err]} {
set result [list 1 $err]
- }
+ }
file delete $idxFile
} else {
set result $rv
@@ -342,16 +347,7 @@ test pkgMkIndex-11.1 {conflicting namespace imports} {
# cleanup
namespace delete pkgtest
+cd $origDir
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-