aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-01-06 14:48:03 -0500
committerDavid Robillard <d@drobilla.net>2017-01-06 21:39:01 -0500
commit5475750ecf496c774a082464b3e60f5adce9cc8a (patch)
tree57e844edc09637096d1b5ea16dcc5ebb69f88345 /wscript
parent52590dbeb23100320417d6f72e20fadf215479e5 (diff)
downloadserd-5475750ecf496c774a082464b3e60f5adce9cc8a.tar.gz
serd-5475750ecf496c774a082464b3e60f5adce9cc8a.tar.bz2
serd-5475750ecf496c774a082464b3e60f5adce9cc8a.zip
Add support for reading TriG
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 10 insertions, 2 deletions
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: