diff options
author | David Robillard <d@drobilla.net> | 2017-01-06 14:48:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-01-06 21:39:01 -0500 |
commit | 5475750ecf496c774a082464b3e60f5adce9cc8a (patch) | |
tree | 57e844edc09637096d1b5ea16dcc5ebb69f88345 /wscript | |
parent | 52590dbeb23100320417d6f72e20fadf215479e5 (diff) | |
download | serd-5475750ecf496c774a082464b3e60f5adce9cc8a.tar.gz serd-5475750ecf496c774a082464b3e60f5adce9cc8a.tar.bz2 serd-5475750ecf496c774a082464b3e60f5adce9cc8a.zip |
Add support for reading TriG
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -359,7 +359,8 @@ def test_manifest(ctx, srcdir, testdir, report, base_uri, isyntax, osyntax, test result = os.path.join(srcdir, 'tests', testdir, result_node) passed = check_output(output, result) - test_thru(ctx, base_uri + action_node, action, result, "") + if isyntax != 'trig': + test_thru(ctx, base_uri + action_node, action, result, "") report.write(earl_assertion(test, passed, asserter)) autowaf.end_tests(ctx, APPNAME, str(test_class)) @@ -369,7 +370,7 @@ def test_manifest(ctx, srcdir, testdir, report, base_uri, isyntax, osyntax, test def test(ctx): blddir = autowaf.build_dir(APPNAME, 'tests') - for i in ['', 'bad', 'good', 'new', 'TurtleTests', 'NQuadsTests', 'extra']: + for i in ['', 'bad', 'good', 'new', 'TurtleTests', 'NQuadsTests', 'TrigTests', 'extra']: try: os.makedirs(os.path.join(blddir, i)) except: @@ -534,6 +535,13 @@ def test(ctx): [rdft.TestNQuadsNegativeSyntax, 1, False], [rdft.TestNQuadsNegativeEval, 1, False], [rdft.TestNQuadsEval, 0, True]]) + + trig_tests = 'http://www.w3.org/2013/TriGTests/' + test_manifest(ctx, srcdir, 'TrigTests', report, trig_tests, 'trig', 'nquads', + [[rdft.TestTrigPositiveSyntax, 0, False], + [rdft.TestTrigNegativeSyntax, 1, False], + [rdft.TestTrigNegativeEval, 1, False], + [rdft.TestTrigEval, 0, True]]) report.close() except: |