From b404312686874e539b617d1f27ccbaa5a82936af Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 21 Oct 2021 15:38:10 -0400 Subject: Replace serdi with more fine-grained tools Especially with the new functionality, the complexity of the command-line interface alone was really becoming unmanageable. The serdi implementation also had the highest cyclomatic complexity of the entire codebase by a huge margin. So, take a page from the Unix philosophy and split serdi into several more finely-honed tools that can be freely composed. Though there is still unfortunately quite a bit of option overlap between them due to the common details of reading RDF, I think the resulting tools are a lot easier to understand, both from a user and a developer perspective. --- test/pattern/meson.build | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'test/pattern') diff --git a/test/pattern/meson.build b/test/pattern/meson.build index 1d5a2140..1216cfe0 100644 --- a/test/pattern/meson.build +++ b/test/pattern/meson.build @@ -1,14 +1,27 @@ base_uri = 'http://drobilla.net/sw/serd/test/pattern/' test('pattern', - run_test_suite, - args: script_args + [ + run_pipe_suite, + args: pipe_test_script_args + [ files('manifest.ttl'), base_uri, '--', - '-i', + '-I', 'variables', ], env: test_env, - suite: ['suite', 'extra'], + suite: ['suite', 'extra', 'pipe'], + timeout: 240) + +test('pattern', + run_sort_suite, + args: sort_test_script_args + [ + files('manifest.ttl'), + base_uri, + '--', + '-I', + 'variables', + ], + env: test_env, + suite: ['suite', 'extra', 'sort'], timeout: 240) -- cgit v1.2.1