aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-09-23 15:04:03 +0200
committerDavid Robillard <d@drobilla.net>2017-09-23 15:59:23 +0200
commit8e5e8ad36085981c77fdee74a9ea74e9cf8b8157 (patch)
treea93bf8cb6f336f0824e9c11bc82aefc619899085 /wscript
parent2d9d00d8653eb9faca450884665861cd4b67802b (diff)
downloadserd-8e5e8ad36085981c77fdee74a9ea74e9cf8b8157.tar.gz
serd-8e5e8ad36085981c77fdee74a9ea74e9cf8b8157.tar.bz2
serd-8e5e8ad36085981c77fdee74a9ea74e9cf8b8157.zip
Add NTriples test suite
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/wscript b/wscript
index 18feba41..0abf6453 100644
--- a/wscript
+++ b/wscript
@@ -380,7 +380,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', 'TrigTests', 'extra']:
+ for i in ['', 'bad', 'good', 'new', 'TurtleTests', 'NTriplesTests', 'NQuadsTests', 'TrigTests', 'extra']:
try:
os.makedirs(os.path.join(blddir, i))
except:
@@ -541,6 +541,13 @@ def test(ctx):
[rdft.TestTurtleNegativeEval, 1, False],
[rdft.TestTurtleEval, 0, True]])
+ ntriples_tests = 'http://www.w3.org/2013/N-TriplesTests/'
+ test_manifest(ctx, srcdir, 'NTriplesTests', report, ntriples_tests, 'ntriples', 'ntriples',
+ [[rdft.TestNTriplesPositiveSyntax, 0, False],
+ [rdft.TestNTriplesNegativeSyntax, 1, False],
+ [rdft.TestNTriplesNegativeEval, 1, False],
+ [rdft.TestNTriplesEval, 0, True]])
+
nquads_tests = 'http://www.w3.org/2013/NQuadsTests/'
test_manifest(ctx, srcdir, 'NQuadsTests', report, nquads_tests, 'nquads', 'nquads',
[[rdft.TestNQuadsPositiveSyntax, 0, False],