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/test_multifile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_multifile.py') diff --git a/test/test_multifile.py b/test/test_multifile.py index 5fb44bc5..c5e11bf3 100755 --- a/test/test_multifile.py +++ b/test/test_multifile.py @@ -12,7 +12,7 @@ import tempfile parser = argparse.ArgumentParser(description=__doc__) -parser.add_argument("--serdi", default="./serdi", help="path to serdi") +parser.add_argument("--tool", default="tools/serd-pipe", help="executable") parser.add_argument("--wrapper", default="", help="executable wrapper") parser.add_argument("testdir", help="multifile test directory") @@ -20,7 +20,7 @@ args = parser.parse_args(sys.argv[1:]) in1_path = os.path.join(args.testdir, "input1.ttl") in2_path = os.path.join(args.testdir, "input2.trig") check_path = os.path.join(args.testdir, "output.nq") -command = shlex.split(args.wrapper) + [args.serdi, in1_path, in2_path] +command = shlex.split(args.wrapper) + [args.tool, in1_path, in2_path] def _show_diff(from_lines, to_lines, from_filename, to_filename): -- cgit v1.2.1