From 1409f161793a289819df1f31eccb579b71f45475 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 12 Aug 2021 22:28:59 -0400 Subject: Fix pretty-printing nested empty lists and add test suite The earlier "test" was just hitting the code without actually checking the output. This new suite is a set of pretty-printed documents which serd must reproduce from a model exactly to pass. This should make it easy to add cases in the future, since each case is just a document, as it should look. --- test/pretty/meson.build | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/pretty/meson.build (limited to 'test/pretty/meson.build') diff --git a/test/pretty/meson.build b/test/pretty/meson.build new file mode 100644 index 00000000..634f1e0e --- /dev/null +++ b/test/pretty/meson.build @@ -0,0 +1,17 @@ +base_uri = 'http://drobilla.net/sw/serd/test/good/' + +args = [files('manifest.ttl')] + +test('pretty', + run_pretty_suite, + args: pipe_test_script_args + ['-o', meson.current_build_dir() / 'pipe'] + args, + env: test_env, + suite: ['suite', 'extra', 'pipe'], + timeout: 240) + +test('pretty', + run_pretty_suite, + args: sort_test_script_args + ['-o', meson.current_build_dir() / 'sort'] + args, + env: test_env, + suite: ['suite', 'extra', 'sort'], + timeout: 240) -- cgit v1.2.1