diff options
author | David Robillard <d@drobilla.net> | 2018-10-28 12:59:39 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-10-28 12:59:39 +0100 |
commit | 9905ec635037bb5c89bfc1818b669e0ca1ba4499 (patch) | |
tree | 3a938c4b8d74039417dfed5ec2c025a96ec0d0c1 | |
parent | 16e9e7ae64b9ce6cb39981c7cd77b3c4dc1b9f90 (diff) | |
download | serd-9905ec635037bb5c89bfc1818b669e0ca1ba4499.tar.gz serd-9905ec635037bb5c89bfc1818b669e0ca1ba4499.tar.bz2 serd-9905ec635037bb5c89bfc1818b669e0ca1ba4499.zip |
Put all tests in groups with consistent naming style
-rw-r--r-- | wscript | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -415,7 +415,7 @@ def test(ctx): os.environ['PATH'] = '.' + os.pathsep + os.getenv('PATH') autowaf.pre_test(ctx, APPNAME) - autowaf.run_test(ctx, APPNAME, 'serd_test', dirs=['.']) + autowaf.run_tests(ctx, APPNAME, ['serd_test'], name='Unit') def test_ttl(in_name, expected_name): in_path = 'tests/good/%s.ttl' % in_name @@ -430,8 +430,9 @@ def test(ctx): '%s/tests/good/%s.ttl' % (srcdir, expected_name)), True, name=in_name + '-check') - test_ttl('base', 'base') - test_ttl('qualify-in', 'qualify-out') + with autowaf.begin_tests(ctx, APPNAME, 'ThroughSyntax'): + test_ttl('base', 'base') + test_ttl('qualify-in', 'qualify-out') nul = os.devnull autowaf.run_tests(ctx, APPNAME, [ @@ -440,7 +441,7 @@ def test(ctx): 'serdi_static -h > %s' % nul, 'serdi_static -s "<foo> a <#Thingie> ." > %s' % nul, 'serdi_static %s > %s' % (nul, nul) - ], 0, name='serdi-cmd-good') + ], 0, name='GoodCommands') autowaf.run_tests(ctx, APPNAME, [ 'serdi_static -q ../tests/bad/bad-id-clash.ttl > %s' % nul, @@ -456,9 +457,9 @@ def test(ctx): 'serdi_static -o illegal > %s' % nul, 'serdi_static -i turtle > %s' % nul, 'serdi_static /no/such/file > %s' % nul], - 1, name='serdi-cmd-bad') + 1, name='BadCommands') - with autowaf.begin_tests(ctx, APPNAME, 'io-error'): + with autowaf.begin_tests(ctx, APPNAME, 'IoErrors'): # Test read error by reading a directory autowaf.run_test(ctx, APPNAME, 'serdi_static -e "file://%s/"' % srcdir, 1, name='read_error') |