>From be1e00de74bdff417e617980eca78f131ac86e6a Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 2 Sep 2011 09:53:54 -0400 Subject: [PATCH oz] Convert unit tests to be in all python. Signed-off-by: Chris Lalancette --- Makefile | 4 +- tests/factory/run.sh | 5 - tests/factory/run_test | 219 +++++++++++++++++++++++++++++++++++++++++ tests/factory/test_factory.py | 215 ---------------------------------------- tests/tdl/run.sh | 128 ------------------------ tests/tdl/run_test | 134 +++++++++++++++++++++++++ tests/tdl/test_tdl.py | 8 -- 7 files changed, 355 insertions(+), 358 deletions(-) delete mode 100755 tests/factory/run.sh create mode 100755 tests/factory/run_test delete mode 100644 tests/factory/test_factory.py delete mode 100755 tests/tdl/run.sh create mode 100755 tests/tdl/run_test delete mode 100644 tests/tdl/test_tdl.py diff --git a/Makefile b/Makefile index 0957518..a1e557b 100644 --- a/Makefile +++ b/Makefile @@ -28,8 +28,8 @@ man2html: @groff -mandoc man/oz-cleanup-cache.1 -T html > man/oz-cleanup-cache.html unittests: - @cd tests/tdl ; ./run.sh - @cd tests/factory ; ./run.sh + @cd tests/tdl ; ./run_test + @cd tests/factory ; ./run_test pylint: pylint --rcfile=pylint.conf oz oz-install oz-customize oz-cleanup-cache oz-generate-icicle diff --git a/tests/factory/run.sh b/tests/factory/run.sh deleted file mode 100755 index 0e00333..0000000 --- a/tests/factory/run.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -export PYTHONPATH=../..:$PYTHONPATH - -python test_factory.py diff --git a/tests/factory/run_test b/tests/factory/run_test new file mode 100755 index 0000000..1f52678 --- /dev/null +++ b/tests/factory/run_test @@ -0,0 +1,219 @@ +#!/usr/bin/python + +import sys +sys.path.insert(0, "../..") + +import oz.TDL +import oz.GuestFactory +import ConfigParser +import StringIO +import logging +import os + +success = 0 +fail = 0 + +def default_route(): + route_file = "/proc/net/route" + d = file(route_file) + + defn = 0 + for line in d.xreadlines(): + info = line.split() + if (len(info) != 11): # 11 = typical num of fields in the file + logging.warn(_("Invalid line length while parsing %s.") % + (route_file)) + break + try: + route = int(info[1], 16) + if route == 0: + return info[0] + except ValueError: + continue + raise Exception, "Could not find default route" + +# we find the default route for this machine. Note that this very well +# may not be a bridge, but for the purposes of testing the factory, it +# doesn't really matter; it just has to have an IP address +route = default_route() + +def test_distro(distro, version, arch, installtype): + global route + + tdlxml = """ + +""" % (distro, version, arch, installtype, installtype, installtype) + + tdl = oz.TDL.TDL(tdlxml) + + config = ConfigParser.SafeConfigParser() + config.readfp(StringIO.StringIO("[libvirt]\nuri=qemu:///session\nbridge_name=%s" % route)) + + if os.getenv('DEBUG') != None: + logging.basicConfig(level=logging.DEBUG, format="%(message)s") + else: + logging.basicConfig(level=logging.ERROR, format="%(message)s") + + guest = oz.GuestFactory.guest_factory(tdl, config, None) + +def runtest(distro, version, arch, installtype, expect_success): + global success + global fail + + print "Testing %s-%s-%s-%s..." % (distro, version, arch, installtype), + try: + test_distro(distro, version, arch, installtype) + if expect_success: + success += 1 + print "OK" + else: + fail += 1 + print "FAIL" + except Exception, e: + if expect_success: + fail += 1 + print e + print "FAIL" + else: + success += 1 + print "OK" + +def expect_success(distro, version, arch, installtype): + return runtest(distro, version, arch, installtype, True) + +def expect_fail(distro, version, arch, installtype): + return runtest(distro, version, arch, installtype, False) + +# bad distro +expect_fail("foo", "1", "i386", "url") +# bad installtype +expect_fail("Fedora", "14", "i386", "dong") +# bad arch +expect_fail("Fedora", "14", "ia64", "iso") + +# FedoraCore +for version in ["1", "2", "3", "4", "5", "6"]: + for arch in ["i386", "x86_64"]: + for installtype in ["url", "iso"]: + expect_success("FedoraCore", version, arch, installtype) +# bad FedoraCore version +expect_fail("FedoraCore", "24", "x86_64", "iso") + +# Fedora +for version in ["7", "8", "9", "10", "11", "12", "13", "14", "15"]: + for arch in ["i386", "x86_64"]: + for installtype in ["url", "iso"]: + expect_success("Fedora", version, arch, installtype) +# bad Fedora version +expect_fail("Fedora", "24", "x86_64", "iso") + +# RHL +for version in ["7.0", "7.1", "7.2", "7.3", "8", "9"]: + expect_success("RHL", version, "i386", "url") +# bad RHL version +expect_fail("RHL", "10", "i386", "url") +# bad RHL arch +expect_fail("RHL", "9", "x86_64", "url") +# bad RHL installtype +expect_fail("RHL", "9", "x86_64", "iso") + +# RHEL-2.1 +for version in ["GOLD", "U2", "U3", "U4", "U5", "U6"]: + expect_success("RHEL-2.1", version, "i386", "url") +# bad RHEL-2.1 version +expect_fail("RHEL-2.1", "U7", "i386", "url") +# bad RHEL-2.1 arch +expect_fail("RHEL-2.1", "U6", "x86_64", "url") +# bad RHEL-2.1 installtype +expect_fail("RHEL-2.1", "U6", "i386", "iso") + +# RHEL-3 +for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9"]: + for arch in ["i386", "x86_64"]: + expect_success("RHEL-3", version, arch, "url") +# bad RHEL-3 version +expect_fail("RHEL-3", "U10", "x86_64", "url") +# invalid RHEL-3 installtype +expect_fail("RHEL-3", "U9", "x86_64", "iso") + +# RHEL-4/CentOS-4 +for distro in ["RHEL-4", "CentOS-4"]: + for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9"]: + for arch in ["i386", "x86_64"]: + for installtype in ["url", "iso"]: + expect_success(distro, version, arch, installtype) +# bad RHEL-4 version +expect_fail("RHEL-4", "U10", "x86_64", "url") + +# RHEL-5/CentOS-5 +for distro in ["RHEL-5", "CentOS-5"]: + for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7"]: + for arch in ["i386", "x86_64"]: + for installtype in ["url", "iso"]: + expect_success(distro, version, arch, installtype) +# bad RHEL-5 version +expect_fail("RHEL-5", "U10", "x86_64", "url") + +# RHEL-6 +for version in ["0", "1"]: + for arch in ["i386", "x86_64"]: + for installtype in ["url", "iso"]: + expect_success("RHEL-6", version, arch, installtype) +# bad RHEL-6 version +expect_fail("RHEL-6", "U10", "x86_64", "url") + +# Debian +for version in ["5", "6"]: + for arch in ["i386", "x86_64"]: + expect_success("Debian", version, arch, "iso") +# bad Debian version +expect_fail("Debian", "12", "i386", "iso") +# invalid Debian installtype +expect_fail("Debian", "6", "x86_64", "url") + +# Windows +expect_success("Windows", "2000", "i386", "iso") +for version in ["XP", "2003", "2008", "7"]: + for arch in ["i386", "x86_64"]: + expect_success("Windows", version, arch, "iso") +# bad Windows 2000 arch +expect_fail("Windows", "2000", "x86_64", "iso") +# bad Windows version +expect_fail("Windows", "1999", "x86_64", "iso") +# invalid Windows installtype +expect_fail("Windows", "2008", "x86_64", "url") + +# OpenSUSE +for version in ["11.0", "11.1", "11.2", "11.3", "11.4"]: + for arch in ["i386", "x86_64"]: + expect_success("OpenSUSE", version, arch, "iso") +# bad OpenSUSE version +expect_fail("OpenSUSE", "16", "x86_64", "iso") +# invalid OpenSUSE installtype +expect_fail("OpenSUSE", "11.4", "x86_64", "url") + +# Ubuntu +for version in ["6.06", "6.06.1", "6.06.2", "6.10", "7.04", "7.10", "8.04", + "8.04.1", "8.04.2", "8.04.3", "8.04.4", "8.10", "9.04", "9.10", + "10.04", "10.04.1", "10.04.2", "10.04.3", "10.10", "11.04"]: + for arch in ["i386", "x86_64"]: + expect_success("Ubuntu", version, arch, "iso") +# bad Ubuntu version +expect_fail("Ubuntu", "10.9", "i386", "iso") +# bad Ubuntu installtype +expect_fail("Ubuntu", "10.10", "i386", "url") + +print "SUCCESS: %d, FAIL: %d" % (success, fail) + +sys.exit(fail) diff --git a/tests/factory/test_factory.py b/tests/factory/test_factory.py deleted file mode 100644 index 934277b..0000000 --- a/tests/factory/test_factory.py +++ /dev/null @@ -1,215 +0,0 @@ -import oz.TDL -import oz.GuestFactory -import ConfigParser -import StringIO -import logging -import os -import sys - -success = 0 -fail = 0 - -def default_route(): - route_file = "/proc/net/route" - d = file(route_file) - - defn = 0 - for line in d.xreadlines(): - info = line.split() - if (len(info) != 11): # 11 = typical num of fields in the file - logging.warn(_("Invalid line length while parsing %s.") % - (route_file)) - break - try: - route = int(info[1], 16) - if route == 0: - return info[0] - except ValueError: - continue - raise Exception, "Could not find default route" - -# we find the default route for this machine. Note that this very well -# may not be a bridge, but for the purposes of testing the factory, it -# doesn't really matter; it just has to have an IP address -route = default_route() - -def test_distro(distro, version, arch, installtype): - global route - - tdlxml = """ - -""" % (distro, version, arch, installtype, installtype, installtype) - - tdl = oz.TDL.TDL(tdlxml) - - config = ConfigParser.SafeConfigParser() - config.readfp(StringIO.StringIO("[libvirt]\nuri=qemu:///session\nbridge_name=%s" % route)) - - if os.getenv('DEBUG') != None: - logging.basicConfig(level=logging.DEBUG, format="%(message)s") - else: - logging.basicConfig(level=logging.ERROR, format="%(message)s") - - guest = oz.GuestFactory.guest_factory(tdl, config, None) - -def runtest(distro, version, arch, installtype, expect_success): - global success - global fail - - print "Testing %s-%s-%s-%s..." % (distro, version, arch, installtype), - try: - test_distro(distro, version, arch, installtype) - if expect_success: - success += 1 - print "OK" - else: - fail += 1 - print "FAIL" - except Exception, e: - if expect_success: - fail += 1 - print e - print "FAIL" - else: - success += 1 - print "OK" - -def expect_success(distro, version, arch, installtype): - return runtest(distro, version, arch, installtype, True) - -def expect_fail(distro, version, arch, installtype): - return runtest(distro, version, arch, installtype, False) - -# bad distro -expect_fail("foo", "1", "i386", "url") -# bad installtype -expect_fail("Fedora", "14", "i386", "dong") -# bad arch -expect_fail("Fedora", "14", "ia64", "iso") - -# FedoraCore -for version in ["1", "2", "3", "4", "5", "6"]: - for arch in ["i386", "x86_64"]: - for installtype in ["url", "iso"]: - expect_success("FedoraCore", version, arch, installtype) -# bad FedoraCore version -expect_fail("FedoraCore", "24", "x86_64", "iso") - -# Fedora -for version in ["7", "8", "9", "10", "11", "12", "13", "14", "15"]: - for arch in ["i386", "x86_64"]: - for installtype in ["url", "iso"]: - expect_success("Fedora", version, arch, installtype) -# bad Fedora version -expect_fail("Fedora", "24", "x86_64", "iso") - -# RHL -for version in ["7.0", "7.1", "7.2", "7.3", "8", "9"]: - expect_success("RHL", version, "i386", "url") -# bad RHL version -expect_fail("RHL", "10", "i386", "url") -# bad RHL arch -expect_fail("RHL", "9", "x86_64", "url") -# bad RHL installtype -expect_fail("RHL", "9", "x86_64", "iso") - -# RHEL-2.1 -for version in ["GOLD", "U2", "U3", "U4", "U5", "U6"]: - expect_success("RHEL-2.1", version, "i386", "url") -# bad RHEL-2.1 version -expect_fail("RHEL-2.1", "U7", "i386", "url") -# bad RHEL-2.1 arch -expect_fail("RHEL-2.1", "U6", "x86_64", "url") -# bad RHEL-2.1 installtype -expect_fail("RHEL-2.1", "U6", "i386", "iso") - -# RHEL-3 -for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9"]: - for arch in ["i386", "x86_64"]: - expect_success("RHEL-3", version, arch, "url") -# bad RHEL-3 version -expect_fail("RHEL-3", "U10", "x86_64", "url") -# invalid RHEL-3 installtype -expect_fail("RHEL-3", "U9", "x86_64", "iso") - -# RHEL-4/CentOS-4 -for distro in ["RHEL-4", "CentOS-4"]: - for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7", "U8", "U9"]: - for arch in ["i386", "x86_64"]: - for installtype in ["url", "iso"]: - expect_success(distro, version, arch, installtype) -# bad RHEL-4 version -expect_fail("RHEL-4", "U10", "x86_64", "url") - -# RHEL-5/CentOS-5 -for distro in ["RHEL-5", "CentOS-5"]: - for version in ["GOLD", "U1", "U2", "U3", "U4", "U5", "U6", "U7"]: - for arch in ["i386", "x86_64"]: - for installtype in ["url", "iso"]: - expect_success(distro, version, arch, installtype) -# bad RHEL-5 version -expect_fail("RHEL-5", "U10", "x86_64", "url") - -# RHEL-6 -for version in ["0", "1"]: - for arch in ["i386", "x86_64"]: - for installtype in ["url", "iso"]: - expect_success("RHEL-6", version, arch, installtype) -# bad RHEL-6 version -expect_fail("RHEL-6", "U10", "x86_64", "url") - -# Debian -for version in ["5", "6"]: - for arch in ["i386", "x86_64"]: - expect_success("Debian", version, arch, "iso") -# bad Debian version -expect_fail("Debian", "12", "i386", "iso") -# invalid Debian installtype -expect_fail("Debian", "6", "x86_64", "url") - -# Windows -expect_success("Windows", "2000", "i386", "iso") -for version in ["XP", "2003", "2008", "7"]: - for arch in ["i386", "x86_64"]: - expect_success("Windows", version, arch, "iso") -# bad Windows 2000 arch -expect_fail("Windows", "2000", "x86_64", "iso") -# bad Windows version -expect_fail("Windows", "1999", "x86_64", "iso") -# invalid Windows installtype -expect_fail("Windows", "2008", "x86_64", "url") - -# OpenSUSE -for version in ["11.0", "11.1", "11.2", "11.3", "11.4"]: - for arch in ["i386", "x86_64"]: - expect_success("OpenSUSE", version, arch, "iso") -# bad OpenSUSE version -expect_fail("OpenSUSE", "16", "x86_64", "iso") -# invalid OpenSUSE installtype -expect_fail("OpenSUSE", "11.4", "x86_64", "url") - -# Ubuntu -for version in ["6.06", "6.06.1", "6.06.2", "6.10", "7.04", "7.10", "8.04", - "8.04.1", "8.04.2", "8.04.3", "8.04.4", "8.10", "9.04", "9.10", - "10.04", "10.04.1", "10.04.2", "10.04.3", "10.10", "11.04"]: - for arch in ["i386", "x86_64"]: - expect_success("Ubuntu", version, arch, "iso") -# bad Ubuntu version -expect_fail("Ubuntu", "10.9", "i386", "iso") -# bad Ubuntu installtype -expect_fail("Ubuntu", "10.10", "i386", "url") - -print "SUCCESS: %d, FAIL: %d" % (success, fail) - -sys.exit(fail) diff --git a/tests/tdl/run.sh b/tests/tdl/run.sh deleted file mode 100755 index f44ce5c..0000000 --- a/tests/tdl/run.sh +++ /dev/null @@ -1,128 +0,0 @@ -#!/bin/bash - -export PYTHONPATH=../..:$PYTHONPATH - -if [ -z "$DEBUG" ]; then - DEBUG=0 -fi - -SUCCESS=0 -FAIL=0 - -success() { - echo "OK" - SUCCESS=$(( $SUCCESS + 1 )) -} - -failure() { - echo "FAIL" - FAIL=$(( $FAIL + 1 )) -} - -schema_test() { - schema="$1" - expectsuccess="$2" - - echo -n "Testing Schema $schema..." - - if [ ! -r "$1" ]; then - echo "FAIL: File not found" - FAIL=$(( $FAIL + 1 )) - return - fi - if [ $DEBUG -eq 0 ]; then - xmllint --noout --relaxng ../../docs/tdl.rng "$schema" >& /dev/null - else - xmllint --relaxng ../../docs/tdl.rng "$schema" - fi - - RET=$? - - if [ $RET -eq 0 -a "$expectsuccess" = "true" ] || [ $RET -ne 0 -a "$expectsuccess" != "true" ]; then - success - else - failure - fi -} - -python_test() { - parse="$1" - expectsuccess="$2" - - echo -n "Testing Parsing $1..." - if [ ! -r "$1" ]; then - echo "FAIL: File not found" - FAIL=$(( $FAIL + 1 )) - return - fi - - if [ $DEBUG -eq 0 ]; then - python test_tdl.py "$1" >& /dev/null - else - python test_tdl.py "$1" - fi - - RET=$? - - if [ $RET -eq 0 -a "$expectsuccess" = "true" ] || [ $RET -ne 0 -a "$expectsuccess" != "true" ]; then - success - else - failure - fi -} - -expect_success() { - schema_test "$1" "true" - python_test "$1" "true" -} - -expect_fail() { - schema_test "$1" "false" - python_test "$1" "false" -} - -expect_success test-01-simple-iso.tdl -expect_success test-02-simple-url.tdl -expect_fail test-03-empty-template.tdl -expect_fail test-04-no-os.tdl -expect_fail test-05-no-name.tdl -expect_success test-06-simple-iso-description.tdl -expect_success test-07-packages-no-package.tdl -expect_success test-08-repositories-no-repository.tdl -expect_fail test-09-os-invalid-arch.tdl -expect_fail test-10-os-invalid-install-type.tdl -expect_success test-11-description-packages-repositories.tdl -expect_fail test-12-os-no-name.tdl -expect_fail test-13-os-no-version.tdl -expect_fail test-14-os-no-arch.tdl -expect_fail test-15-os-no-install.tdl -expect_success test-16-signed-repository.tdl -expect_fail test-17-repo-invalid-signed.tdl -expect_success test-18-rootpw.tdl -expect_success test-19-key.tdl -expect_fail test-20-multiple-install.tdl -expect_fail test-21-missing-install-type.tdl -expect_success test-22-md5sum.tdl -expect_success test-23-sha1sum.tdl -expect_success test-24-sha256sum.tdl -expect_fail test-25-md5sum-and-sha1sum.tdl -expect_fail test-26-md5sum-and-sha256sum.tdl -expect_fail test-27-sha1sum-and-sha256sum.tdl -expect_fail test-28-package-no-name.tdl -expect_success test-29-files.tdl -expect_fail test-30-file-no-name.tdl -expect_success test-31-file-raw-type.tdl -expect_success test-32-file-base64-type.tdl -expect_fail test-33-file-invalid-type.tdl -expect_fail test-34-file-invalid-base64.tdl -expect_fail test-35-repository-no-name.tdl -expect_fail test-36-repository-no-url.tdl -expect_success test-37-command.tdl -expect_fail test-38-command-no-name.tdl -expect_success test-39-command-raw-type.tdl -expect_success test-40-command-base64-type.tdl -expect_fail test-41-command-bogus-base64.tdl -expect_fail test-42-command-bogus-type.tdl - -echo "SUCCESS: $SUCCESS, FAIL: $FAIL" -exit $FAIL diff --git a/tests/tdl/run_test b/tests/tdl/run_test new file mode 100755 index 0000000..0fdf13b --- /dev/null +++ b/tests/tdl/run_test @@ -0,0 +1,134 @@ +#!/usr/bin/python + +import sys +sys.path.insert(0, "../..") + +import libxml2 +import os +import traceback + +import oz.TDL + +try: + debug = os.environ['DEBUG'] +except: + debug = None + +# the tests dictionary lists all of the test we will run. The key for the +# dictionary is the filename of the test, and the value is whether the test +# is expected to succeed (True) or not (False) +tests = { + "test-01-simple-iso.tdl": True, + "test-02-simple-url.tdl": True, + "test-03-empty-template.tdl": False, + "test-04-no-os.tdl": False, + "test-05-no-name.tdl": False, + "test-06-simple-iso-description.tdl": True, + "test-07-packages-no-package.tdl": True, + "test-08-repositories-no-repository.tdl": True, + "test-09-os-invalid-arch.tdl": False, + "test-10-os-invalid-install-type.tdl": False, + "test-11-description-packages-repositories.tdl": True, + "test-12-os-no-name.tdl": False, + "test-13-os-no-version.tdl": False, + "test-14-os-no-arch.tdl": False, + "test-15-os-no-install.tdl": False, + "test-16-signed-repository.tdl": True, + "test-17-repo-invalid-signed.tdl": False, + "test-18-rootpw.tdl": True, + "test-19-key.tdl": True, + "test-20-multiple-install.tdl": False, + "test-21-missing-install-type.tdl": False, + "test-22-md5sum.tdl": True, + "test-23-sha1sum.tdl": True, + "test-24-sha256sum.tdl": True, + "test-25-md5sum-and-sha1sum.tdl": False, + "test-26-md5sum-and-sha256sum.tdl": False, + "test-27-sha1sum-and-sha256sum.tdl": False, + "test-28-package-no-name.tdl": False, + "test-29-files.tdl": True, + "test-30-file-no-name.tdl": False, + "test-31-file-raw-type.tdl": True, + "test-32-file-base64-type.tdl": True, + "test-33-file-invalid-type.tdl": False, + "test-34-file-invalid-base64.tdl": False, + "test-35-repository-no-name.tdl": False, + "test-36-repository-no-url.tdl": False, + "test-37-command.tdl": True, + "test-38-command-no-name.tdl": False, + "test-39-command-raw-type.tdl": True, + "test-40-command-base64-type.tdl": True, + "test-41-command-bogus-base64.tdl": False, + "test-42-command-bogus-type.tdl": False, +} + +success = 0 +fail = 0 + +def succeeded(): + global success + print "OK" + success += 1 + +def failed(): + global fail + print "FAIL" + fail += 1 + +def validate_ozlib(tdl, schema): + print "Testing Parsing " + tdl + "...", + try: + oz.TDL.TDL(open(tdl, 'r').read()) + if succeed: + succeeded() + else: + failed() + except Exception, e: + if debug: + traceback.print_exc(file=sys.stdout) + if succeed: + failed() + else: + succeeded() + +def validate_schema(tdl, succeed): + errout = [''] + + def libxml2_relaxng_errcb(msg, item): + errout[0] = errout[0] + msg + + print "Testing Schema " + tdl + "...", + + schema = open('../../docs/tdl.rng', 'r').read() + rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema)) + rngs = rngp.relaxNGParse() + rngctxt = rngs.relaxNGNewValidCtxt() + rngctxt.setValidityErrorHandler(libxml2_relaxng_errcb, None) + + xml = open(tdl, 'r').read() + if debug: + print xml + + doc = libxml2.parseDoc(xml) + ret = doc.relaxNGValidateDoc(rngctxt) + if debug: + print errout[0] + + if ret == 0: + if succeed: + succeeded() + else: + failed() + else: + if succeed: + failed() + else: + succeeded() + +for tdl in sorted(tests.iterkeys()): + succeed = tests[tdl] + + validate_schema(tdl, succeed) + validate_ozlib(tdl, succeed) + +print "SUCCESS: %d, FAIL: %d" % (success, fail) diff --git a/tests/tdl/test_tdl.py b/tests/tdl/test_tdl.py deleted file mode 100644 index 75ea3f8..0000000 --- a/tests/tdl/test_tdl.py +++ /dev/null @@ -1,8 +0,0 @@ -import oz.TDL -import sys - -if len(sys.argv) != 2: - print "Usage: test_tdl.py " - sys.exit(1) - -tdl = oz.TDL.TDL(open(sys.argv[1], 'r').read()) -- 1.7.4.4