[ZPT] CVS: Packages/TAL - driver.py:1.16 runtest.py:1.13

fred@digicool.com fred@digicool.com
Fri, 16 Mar 2001 16:58:38 -0500 (EST)


Update of /cvs-repository/Packages/TAL
In directory korak:/tmp/cvs-serv16727

Modified Files:
	driver.py runtest.py 
Log Message:

Move all the test input/output files around so the test/ directory is
available for Zope-style regression tests; these will appear later.



--- Updated File driver.py in package Packages/TAL --
--- driver.py	2001/03/16 16:48:48	1.15
+++ driver.py	2001/03/16 21:58:07	1.16
@@ -102,7 +102,7 @@
 # Import local classes
 from DummyEngine import DummyEngine
 
-FILE = "test/test1.xml"
+FILE = "test/input/test1.xml"
 
 def main():
     versionTest = 1
@@ -116,7 +116,7 @@
             "usage: driver.py [-h|-x] [-m] [-n] [file]\n")
         sys.stderr.write("-h/-x -- HTML/XML input (default auto)\n")
         sys.stderr.write("-m -- macro expansion only\n")
-        sys.stderr.write("-n -- turn of the Python 1.5.2 test\n")
+        sys.stderr.write("-n -- turn off the Python 1.5.2 test\n")
         sys.exit(2)
     for o, a in opts:
         if o == '-h':

--- Updated File runtest.py in package Packages/TAL --
--- runtest.py	2001/03/16 16:48:48	1.12
+++ runtest.py	2001/03/16 21:58:07	1.13
@@ -125,7 +125,7 @@
         opts.append(args[0])
         del args[0]
     if not args:
-        prefix = os.path.join("test", "test*.")
+        prefix = os.path.join("test", "input", "test*.")
         xmlargs = glob.glob(prefix + "xml")
         xmlargs.sort()
         htmlargs = glob.glob(prefix + "html")
@@ -157,8 +157,8 @@
             continue
         head, tail = os.path.split(arg)
         outfile = os.path.join(
-            head,
-            string.replace(tail, "test", "out"))
+            string.replace(head, "input", "output"),
+            tail)
         try:
             f = open(outfile)
         except IOError: