diff options
author | David Robillard <d@drobilla.net> | 2018-11-25 16:12:23 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-05 17:12:38 +0100 |
commit | d493841ad1ae145db53b04d4d8eeb21fe6a2a438 (patch) | |
tree | db59efac99d81fec4d2be12756b28d46883a307f | |
parent | a061646f3a87e9e3729b4ac1f4dee2a88d0c8f5b (diff) | |
download | serd-d493841ad1ae145db53b04d4d8eeb21fe6a2a438.tar.gz serd-d493841ad1ae145db53b04d4d8eeb21fe6a2a438.tar.bz2 serd-d493841ad1ae145db53b04d4d8eeb21fe6a2a438.zip |
Add separate test suite for lax syntax tests
-rw-r--r-- | tests/good/manifest.ttl | 7 | ||||
-rw-r--r-- | tests/lax/manifest.ttl | 18 | ||||
-rw-r--r-- | tests/lax/test-bad-utf8.nt (renamed from tests/good/test-bad-utf8.nt) | 0 | ||||
-rw-r--r-- | tests/lax/test-bad-utf8.ttl (renamed from tests/good/test-bad-utf8.ttl) | 0 | ||||
-rw-r--r-- | wscript | 4 |
5 files changed, 21 insertions, 8 deletions
diff --git a/tests/good/manifest.ttl b/tests/good/manifest.ttl index f8641326..81ccf464 100644 --- a/tests/good/manifest.ttl +++ b/tests/good/manifest.ttl @@ -17,7 +17,6 @@ <#test-18> <#test-30> <#test-backspace> - <#test-bad-utf8> <#test-base-query> <#test-blank-cont> <#test-blank-in-list> @@ -101,12 +100,6 @@ mf:action <test-backspace.ttl> ; mf:result <test-backspace.nt> . -<#test-bad-utf8> - rdf:type rdft:TestTurtleEval ; - mf:name "test-bad-utf8" ; - mf:action <test-bad-utf8.ttl> ; - mf:result <test-bad-utf8.nt> . - <#test-base-query> rdf:type rdft:TestTurtleEval ; mf:name "test-base-query" ; diff --git a/tests/lax/manifest.ttl b/tests/lax/manifest.ttl new file mode 100644 index 00000000..533dbe70 --- /dev/null +++ b/tests/lax/manifest.ttl @@ -0,0 +1,18 @@ +@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Serd lax syntax test cases" ; + mf:entries ( + <#test-bad-utf8> + ) . + +<#test-bad-utf8> + rdf:type rdft:TestTurtleEval ; + mf:name "test-bad-utf8" ; + mf:action <test-bad-utf8.ttl> ; + mf:result <test-bad-utf8.nt> . + diff --git a/tests/good/test-bad-utf8.nt b/tests/lax/test-bad-utf8.nt index 6d73993d..6d73993d 100644 --- a/tests/good/test-bad-utf8.nt +++ b/tests/lax/test-bad-utf8.nt diff --git a/tests/good/test-bad-utf8.ttl b/tests/lax/test-bad-utf8.ttl index 2c105f5b..2c105f5b 100644 --- a/tests/good/test-bad-utf8.ttl +++ b/tests/lax/test-bad-utf8.ttl @@ -542,6 +542,7 @@ def run_test_suites(ctx, opts): # Serd-specific test cases serd_base = 'http://drobilla.net/sw/serd/tests/' test_suite(ctx, serd_base + 'good/', 'good', None, 'Turtle', 'NTriples', opts) + test_suite(ctx, serd_base + 'lax/', 'lax', None, 'Turtle', 'NTriples', opts + ' -l') test_suite(ctx, serd_base + 'bad/', 'bad', None, 'Turtle', 'NTriples', opts) # Standard test suites @@ -567,7 +568,8 @@ def test(ctx): "runs test suite" # Create test output directories - for i in ['bad', 'good', 'TurtleTests', 'NTriplesTests', 'NQuadsTests', 'TriGTests']: + for i in ['bad', 'good', 'lax', + 'TurtleTests', 'NTriplesTests', 'NQuadsTests', 'TriGTests']: try: test_dir = os.path.join(autowaf.build_dir(APPNAME, 'tests'), i) os.makedirs(test_dir) |