diff options
author | David Robillard <d@drobilla.net> | 2011-01-20 23:34:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-20 23:34:07 +0000 |
commit | be0d9a7989137f27c36bf9f592d054442a005ae6 (patch) | |
tree | d644d7312410c2db3859bdd53df46f142a378ac8 /wscript | |
parent | 59306b9fe621bcf4c389428834d2a0fadb1a3fe9 (diff) | |
download | serd-be0d9a7989137f27c36bf9f592d054442a005ae6.tar.gz serd-be0d9a7989137f27c36bf9f592d054442a005ae6.tar.bz2 serd-be0d9a7989137f27c36bf9f592d054442a005ae6.zip |
Support new autowaf test interface.
git-svn-id: http://svn.drobilla.net/serd/trunk@17 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -116,6 +116,8 @@ def test(ctx): for i in glob.glob('build/tests/*.*'): os.remove(i) + autowaf.pre_test(ctx, APPNAME) + commands = [] good_tests = glob.glob('tests/test-*.ttl') good_tests.sort() @@ -123,9 +125,9 @@ def test(ctx): base_uri = 'http://www.w3.org/2001/sw/DataAccess/df1/' + test commands = commands + [ './serdi_static ../%s \'%s\' > %s.out' % (test, base_uri, test) ] - autowaf.run_tests(ctx, APPNAME, commands, 0) + autowaf.run_tests(ctx, APPNAME, commands, 0, name='good') - Logs.pprint('BOLD', '\nVerifying output') + Logs.pprint('BOLD', '\nVerifying serd.good test output') for test in good_tests: out_filename = 'build/' + test + '.out' if not os.access(out_filename, os.F_OK): @@ -144,5 +146,6 @@ def test(ctx): for test in bad_tests: commands = commands + [ './serdi_static ../%s \'http://www.w3.org/2001/sw/DataAccess/df1/%s\' > %s.out' % (test, test, test) ] - autowaf.run_tests(ctx, APPNAME, commands, 1) + autowaf.run_tests(ctx, APPNAME, commands, 1, name='bad') + autowaf.post_test(ctx, APPNAME) |