Commit 9a27d058 authored by Fred Drake's avatar Fred Drake

Move all the test input/output files around so the test/ directory is
available for Zope-style regression tests; these will appear later.
parent ab80f6d3
......@@ -102,7 +102,7 @@ except ImportError:
# Import local classes
from DummyEngine import DummyEngine
FILE = "test/test1.xml"
FILE = "test/input/test1.xml"
def main():
versionTest = 1
......@@ -116,7 +116,7 @@ def main():
"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':
......
......@@ -125,7 +125,7 @@ def main():
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 @@ def main():
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:
......
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal"
m:use-macro="test/test5.xml/body">
m:use-macro="test/input/test5.xml/body">
dummy body in test6
</body>
</html>
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal"
m:use-macro="test/test5.xml/body">
m:use-macro="test/input/test5.xml/body">
dummy body in test6
</body>
</html>
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro use with slots -->
<tr>
<td>
......
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro use with slots -->
<tr>
<td>
......
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test5.xml/body">
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test5.xml/body">
<h1>This is the body of test5</h1>
......
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test5.xml/body">
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test5.xml/body">
<h1>This is the body of test5</h1>
......
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro definition with slots -->
<tr>
<td>Top Left</td>
......
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro definition with slots -->
<tr>
<td>Top Left</td>
......
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal"
m:use-macro="test/test5.xml/body">
m:use-macro="test/input/test5.xml/body">
dummy body in test6
</body>
</html>
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal"
m:use-macro="test/test5.xml/body">
m:use-macro="test/input/test5.xml/body">
dummy body in test6
</body>
</html>
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro use with slots -->
<tr>
<td>
......
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro use with slots -->
<tr>
<td>
......
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test5.xml/body">
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test5.xml/body">
<h1>This is the body of test5</h1>
......
<?xml version="1.0" ?>
<html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test5.xml/body">
<body xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test5.xml/body">
<h1>This is the body of test5</h1>
......
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro definition with slots -->
<tr>
<td>Top Left</td>
......
<?xml version="1.0" ?>
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/test7.xml/myTable">
<table xmlns:m="http://xml.zope.org/namespaces/metal" m:use-macro="test/input/test7.xml/myTable">
<!-- macro definition with slots -->
<tr>
<td>Top Left</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment