aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_pretty_suite.py
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-12 23:38:52 -0400
committerDavid Robillard <d@drobilla.net>2022-01-28 21:57:07 -0500
commitfdf837b4b3baffc65e429c2e6ecc2e764bfed0ac (patch)
tree02e1f667d308c94c2657aab902f62b7712d7dea9 /test/run_pretty_suite.py
parent04ac8e8c12044da5befe0559eb36634babcf771a (diff)
downloadserd-fdf837b4b3baffc65e429c2e6ecc2e764bfed0ac.tar.gz
serd-fdf837b4b3baffc65e429c2e6ecc2e764bfed0ac.tar.bz2
serd-fdf837b4b3baffc65e429c2e6ecc2e764bfed0ac.zip
Fix TriG graph indentation
Diffstat (limited to 'test/run_pretty_suite.py')
-rwxr-xr-xtest/run_pretty_suite.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/run_pretty_suite.py b/test/run_pretty_suite.py
index a17dd0f8..52686555 100755
--- a/test/run_pretty_suite.py
+++ b/test/run_pretty_suite.py
@@ -53,7 +53,7 @@ def test_suite(
self.n_tests = 0
self.n_failures = 0
- def run_test(entry, results):
+ def run_test(entry, syntax, results):
"""Run a single test entry from the manifest."""
input_uri = model[entry][mf + "action"][0]
@@ -65,7 +65,7 @@ def test_suite(
"-B",
base_uri,
"-O",
- "turtle",
+ syntax,
"-o",
output_path,
input_path,
@@ -92,9 +92,12 @@ def test_suite(
# Run all test types in the test suite
results = Results()
for klass, instances in instances.items():
- if klass == "http://drobilla.net/ns/serd#TestTurtlePrint":
+ if klass == "http://drobilla.net/ns/serd#TestTrigPrint":
for entry in instances:
- run_test(entry, results)
+ run_test(entry, "TriG", results)
+ elif klass == "http://drobilla.net/ns/serd#TestTurtlePrint":
+ for entry in instances:
+ run_test(entry, "Turtle", results)
# Print result summary
if results.n_failures > 0: