From 5475750ecf496c774a082464b3e60f5adce9cc8a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 6 Jan 2017 14:48:03 -0500 Subject: Add support for reading TriG --- wscript | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index 7762cff7..8c8d86a4 100644 --- a/wscript +++ b/wscript @@ -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: -- cgit v1.2.1