diff options
author | David Robillard <d@drobilla.net> | 2013-02-24 04:32:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-24 04:32:08 +0000 |
commit | d3e093b153ec1cfb6ba82e4b0144cf59880326f3 (patch) | |
tree | 8aa7d2d436bf91b330b38f2c22e1b817f1e1dccd /wscript | |
parent | 541c97ad49dd8bb33297a14f422299328b7f4131 (diff) | |
download | serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.tar.gz serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.tar.bz2 serd-d3e093b153ec1cfb6ba82e4b0144cf59880326f3.zip |
Restructure test suite to match new Turtle test suite.
git-svn-id: http://svn.drobilla.net/serd/trunk@412 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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) |