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: ...@@ -102,7 +102,7 @@ except ImportError:
# Import local classes # Import local classes
from DummyEngine import DummyEngine from DummyEngine import DummyEngine
FILE = "test/test1.xml" FILE = "test/input/test1.xml"
def main(): def main():
versionTest = 1 versionTest = 1
...@@ -116,7 +116,7 @@ def main(): ...@@ -116,7 +116,7 @@ def main():
"usage: driver.py [-h|-x] [-m] [-n] [file]\n") "usage: driver.py [-h|-x] [-m] [-n] [file]\n")
sys.stderr.write("-h/-x -- HTML/XML input (default auto)\n") sys.stderr.write("-h/-x -- HTML/XML input (default auto)\n")
sys.stderr.write("-m -- macro expansion only\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) sys.exit(2)
for o, a in opts: for o, a in opts:
if o == '-h': if o == '-h':
......
...@@ -125,7 +125,7 @@ def main(): ...@@ -125,7 +125,7 @@ def main():
opts.append(args[0]) opts.append(args[0])
del args[0] del args[0]
if not args: if not args:
prefix = os.path.join("test", "test*.") prefix = os.path.join("test", "input", "test*.")
xmlargs = glob.glob(prefix + "xml") xmlargs = glob.glob(prefix + "xml")
xmlargs.sort() xmlargs.sort()
htmlargs = glob.glob(prefix + "html") htmlargs = glob.glob(prefix + "html")
...@@ -157,8 +157,8 @@ def main(): ...@@ -157,8 +157,8 @@ def main():
continue continue
head, tail = os.path.split(arg) head, tail = os.path.split(arg)
outfile = os.path.join( outfile = os.path.join(
head, string.replace(head, "input", "output"),
string.replace(tail, "test", "out")) tail)
try: try:
f = open(outfile) f = open(outfile)
except IOError: except IOError:
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" <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 dummy body in test6
</body> </body>
</html> </html>
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" <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 dummy body in test6
</body> </body>
</html> </html>
<?xml version="1.0" ?> <?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 --> <!-- macro use with slots -->
<tr> <tr>
<td> <td>
......
<?xml version="1.0" ?> <?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 --> <!-- macro use with slots -->
<tr> <tr>
<td> <td>
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <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> <h1>This is the body of test5</h1>
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <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> <h1>This is the body of test5</h1>
......
<?xml version="1.0" ?> <?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 --> <!-- macro definition with slots -->
<tr> <tr>
<td>Top Left</td> <td>Top Left</td>
......
<?xml version="1.0" ?> <?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 --> <!-- macro definition with slots -->
<tr> <tr>
<td>Top Left</td> <td>Top Left</td>
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" <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 dummy body in test6
</body> </body>
</html> </html>
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <html>
<body xmlns:m="http://xml.zope.org/namespaces/metal" <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 dummy body in test6
</body> </body>
</html> </html>
<?xml version="1.0" ?> <?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 --> <!-- macro use with slots -->
<tr> <tr>
<td> <td>
......
<?xml version="1.0" ?> <?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 --> <!-- macro use with slots -->
<tr> <tr>
<td> <td>
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <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> <h1>This is the body of test5</h1>
......
<?xml version="1.0" ?> <?xml version="1.0" ?>
<html> <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> <h1>This is the body of test5</h1>
......
<?xml version="1.0" ?> <?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 --> <!-- macro definition with slots -->
<tr> <tr>
<td>Top Left</td> <td>Top Left</td>
......
<?xml version="1.0" ?> <?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 --> <!-- macro definition with slots -->
<tr> <tr>
<td>Top Left</td> <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