From d3e093b153ec1cfb6ba82e4b0144cf59880326f3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Feb 2013 04:32:08 +0000 Subject: Restructure test suite to match new Turtle test suite. git-svn-id: http://svn.drobilla.net/serd/trunk@412 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- wscript | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 71b85c76..a0b5f532 100644 --- a/wscript +++ b/wscript @@ -267,7 +267,7 @@ def file_equals(patha, pathb, subst_from='', subst_to=''): def test(ctx): blddir = autowaf.build_dir(APPNAME, 'tests') try: - os.makedirs(blddir) + os.makedirs(os.path.join(blddir, 'bad')) except: pass @@ -279,10 +279,11 @@ def test(ctx): os.chdir(srcdir) - good_tests = glob.glob('tests/test-*.ttl') + good_tests = glob.glob('tests/*.ttl') good_tests.sort() + good_tests.remove('tests/manifest.ttl') - bad_tests = glob.glob('tests/bad-*.ttl') + bad_tests = glob.glob('tests/bad/*.ttl') bad_tests.sort() os.chdir(orig_dir) @@ -339,7 +340,7 @@ def test(ctx): out_filename = test + '.out' if not os.access(out_filename, os.F_OK): Logs.pprint('RED', 'FAIL: %s output is missing' % test) - elif not file_equals(srcdir + '/' + test.replace('.ttl', '.out'), + elif not file_equals(srcdir + '/' + test.replace('.ttl', '.nt'), test + '.out'): Logs.pprint('RED', 'FAIL: %s is incorrect' % out_filename) else: @@ -381,7 +382,7 @@ def test(ctx): out_filename = test + '.thru' if not os.access(out_filename, os.F_OK): Logs.pprint('RED', 'FAIL: %s output is missing' % test) - elif not file_equals(srcdir + '/' + test.replace('.ttl', '.out'), + elif not file_equals(srcdir + '/' + test.replace('.ttl', '.nt'), test + '.thru', '_:docid', '_:genid'): Logs.pprint('RED', 'FAIL: %s is incorrect' % out_filename) -- cgit v1.2.1