summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-07-09 16:23:03 -0400
committerDavid Robillard <d@drobilla.net>2016-07-09 16:23:03 -0400
commit92eceb93fa84bbe8038b703b3b8df061e381046b (patch)
tree5b18413fcb5ff8b82cf431c714d5e76e336abe3f
parent602b4e44a86b32503289dc04a0fd5324f8bea71c (diff)
downloadsord-92eceb93fa84bbe8038b703b3b8df061e381046b.tar.gz
sord-92eceb93fa84bbe8038b703b3b8df061e381046b.tar.bz2
sord-92eceb93fa84bbe8038b703b3b8df061e381046b.zip
Clean up test output
-rw-r--r--wscript13
1 files changed, 8 insertions, 5 deletions
diff --git a/wscript b/wscript
index a44d924..05a179e 100644
--- a/wscript
+++ b/wscript
@@ -307,7 +307,8 @@ def test(ctx):
'sordi_static /no/such/file > %s' % nul],
1, name='sordi-cmd-bad')
- autowaf.run_tests(ctx, APPNAME, ['sord_test'])
+ Logs.pprint('GREEN', '')
+ autowaf.run_test(ctx, APPNAME, 'sord_test', name='sord_test')
commands = []
for test in good_tests:
@@ -317,18 +318,20 @@ def test(ctx):
autowaf.run_tests(ctx, APPNAME, commands, 0, name='good')
- Logs.pprint('BOLD', '\nVerifying turtle => ntriples')
+ verify_tests = []
for test in good_tests:
out_filename = test + '.out'
cmp_filename = srcdir + '/' + test.replace('.ttl', '.out')
if not os.access(out_filename, os.F_OK):
- Logs.pprint('RED', 'FAIL: %s output is missing' % test)
+ Logs.pprint('RED', '** FAIL %s output is missing' % test)
+ verify_tests += [[out_filename, 1]]
else:
out_lines = sorted(open(out_filename).readlines())
cmp_lines = sorted(open(cmp_filename).readlines())
if out_lines != cmp_lines:
- Logs.pprint('RED', 'FAIL: %s is incorrect' % out_filename)
+ verify_tests += [[out_filename, 1]]
else:
- Logs.pprint('GREEN', 'Pass: %s' % test)
+ verify_tests += [[out_filename, 0]]
+ autowaf.run_tests(ctx, APPNAME, verify_tests, name='verify_turtle_to_ntriples')
autowaf.post_test(ctx, APPNAME)