aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-12-25 21:04:13 +0000
committerDavid Robillard <d@drobilla.net>2013-12-25 21:04:13 +0000
commit60df320d954e5a82c7c4abc213bc4d396a3ef271 (patch)
tree38cec34cd8247208e5d4e5107196e2954e988aa2
parent89125665efabe7c9b2a26abbf24c10f181a36312 (diff)
downloadserd-60df320d954e5a82c7c4abc213bc4d396a3ef271.tar.gz
serd-60df320d954e5a82c7c4abc213bc4d396a3ef271.tar.bz2
serd-60df320d954e5a82c7c4abc213bc4d396a3ef271.zip
Fix serd test suite when running recursively (#912).
git-svn-id: http://svn.drobilla.net/serd/trunk@458 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--wscript15
1 files changed, 7 insertions, 8 deletions
diff --git a/wscript b/wscript
index 7be99cf3..3de68167 100644
--- a/wscript
+++ b/wscript
@@ -455,14 +455,14 @@ def test(ctx):
# Good tests
for tdir, tests in good_tests.items():
commands = []
-
+
for test in tests:
path = os.path.join('tests', tdir, test)
commands += [ 'serdi_static -f "%s" "%s" > %s.out' % (
- os.path.join('..', path), test_base(test), path) ]
-
+ os.path.join(srcdir, path), test_base(test), path) ]
+
autowaf.run_tests(ctx, APPNAME, commands, 0, name=tdir)
-
+
Logs.pprint('BOLD', '\nVerifying turtle => ntriples')
for test in tests:
check_filename = os.path.join(
@@ -474,7 +474,7 @@ def test(ctx):
Logs.pprint('RED', 'FAIL: %s is incorrect' % out_filename)
else:
Logs.pprint('GREEN', 'Pass: %s' % test)
-
+
# Bad tests
commands = []
for test in bad_tests:
@@ -489,7 +489,7 @@ def test(ctx):
# Round-trip good tests
for tdir, tests in good_tests.items():
thru_tests = tests;
-
+
commands = []
num = 0
for test in thru_tests:
@@ -508,7 +508,6 @@ def test(ctx):
check = os.path.join(srcdir, path.replace('.ttl', '.nt'))
test_thru(ctx, test_base(test), path, check, flags)
-
# New manifest-driven tests
try:
report = open('earl.ttl', 'w')
@@ -525,5 +524,5 @@ def test(ctx):
except:
pass
-
+
autowaf.post_test(ctx, APPNAME)