diff options
author | David Robillard <d@drobilla.net> | 2016-07-09 16:23:03 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-09 16:23:03 -0400 |
commit | 92eceb93fa84bbe8038b703b3b8df061e381046b (patch) | |
tree | 5b18413fcb5ff8b82cf431c714d5e76e336abe3f /wscript | |
parent | 602b4e44a86b32503289dc04a0fd5324f8bea71c (diff) | |
download | sord-92eceb93fa84bbe8038b703b3b8df061e381046b.tar.gz sord-92eceb93fa84bbe8038b703b3b8df061e381046b.tar.bz2 sord-92eceb93fa84bbe8038b703b3b8df061e381046b.zip |
Clean up test output
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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) |