aboutsummaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-01 20:09:38 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commitfac7901dca0b4821582c6062600d37ac987082d9 (patch)
tree177f20f43d11e65857be9a6d71a5e27c370212c5 /test/meson.build
parentaa96c067439252b1955cfa11e75948d15f1b1656 (diff)
downloadserd-fac7901dca0b4821582c6062600d37ac987082d9.tar.gz
serd-fac7901dca0b4821582c6062600d37ac987082d9.tar.bz2
serd-fac7901dca0b4821582c6062600d37ac987082d9.zip
Collapse input and output options into single flags
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build53
1 files changed, 27 insertions, 26 deletions
diff --git a/test/meson.build b/test/meson.build
index 24180efa..84ae7525 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -108,7 +108,7 @@ if get_option('lint')
test(
ttl_file_path.underscorify(),
check_formatting_py,
- args: [files(ttl_file_path), serd_pipe, '-o', 'turtle'],
+ args: [files(ttl_file_path), serd_pipe, '-O', 'turtle'],
suite: 'data',
)
endforeach
@@ -180,22 +180,22 @@ simple_command_tests = {
'bad': [
['-B', 'nonuriorpath'],
['-B'],
+ ['-I', 'turtle'],
+ ['-I', 'unknown'],
+ ['-I'],
+ ['-O', 'unknown'],
+ ['-O'],
['-b', '-1'],
['-b', '1024junk'],
['-b', '9223372036854775807'],
['-b'],
['-c'],
- ['-fi'],
- ['-i', 'turtle'],
- ['-i', 'unknown'],
- ['-i'],
['-k', '-1'],
['-k', '1024junk'],
['-k', '9223372036854775807'],
['-k'],
- ['-o', 'unknown'],
- ['-o'],
['-p'],
+ ['-qi'],
['-r'],
['-s', '<foo> a <Bar> .'],
['-s'],
@@ -395,30 +395,30 @@ test_suites = {
files('w3c/nquads/manifest.ttl'),
ns_w3 + 'NQuadsTests/',
'--',
- '-a',
- ['-i', 'NQuads'],
+ ['-I', 'NQuads'],
+ ['-O', 'ascii'],
],
'ntriples': [
files('w3c/ntriples/manifest.ttl'),
ns_w3 + 'NTriplesTests/',
'--',
- '-a',
- ['-i', 'NTriples'],
+ ['-I', 'NTriples'],
+ ['-O', 'ascii'],
['-k', '1024'],
],
'trig': [
files('w3c/trig/manifest.ttl'),
ns_w3 + 'TriGTests/',
'--',
- '-a',
- ['-i', 'TriG'],
+ ['-I', 'TriG'],
+ ['-O', 'ascii'],
],
'turtle': [
files('w3c/turtle/manifest.ttl'),
ns_w3 + 'TurtleTests/',
'--',
- '-a',
- ['-i', 'Turtle'],
+ ['-I', 'Turtle'],
+ ['-O', 'ascii'],
],
'abbreviate': [
@@ -433,7 +433,7 @@ test_suites = {
files('extra/bad/manifest.ttl'),
ns_serdtest + 'bad/',
'--',
- ['-o', 'turtle'],
+ ['-O', 'turtle'],
],
'big': [
files('extra/big/manifest.ttl'),
@@ -443,41 +443,42 @@ test_suites = {
files('extra/good/manifest.ttl'),
ns_serdtest + 'good/',
'--',
- '-a',
['-b', '1'],
+ ['-O', 'ascii'],
],
'canon': [
files('extra/canon/manifest.ttl'),
ns_serdtest + 'canon/',
'--',
'-C',
- '-a',
+ ['-O', 'ascii'],
],
'fast': [
files('extra/perfect/manifest.ttl'),
ns_serdtest + 'perfect/',
'--',
- '-f',
+ ['-I', 'verbatim'],
+ ['-O', 'verbatim'],
],
'full': [
files('extra/full/manifest.ttl'),
ns_serdtest + 'full/',
'--',
- '-f',
+ ['-O', 'expanded'],
],
'good': [
files('extra/good/manifest.ttl'),
ns_serdtest + 'good/',
'--',
- '-a',
+ ['-O', 'ascii'],
],
'lax_lax': [
'--lax',
files('extra/lax/manifest.ttl'),
ns_serdtest + 'lax/',
'--',
- '-a',
- '-l',
+ ['-I', 'lax'],
+ ['-O', 'ascii'],
],
'lax_strict': [
files('extra/lax/manifest.ttl'),
@@ -487,7 +488,7 @@ test_suites = {
files('extra/pattern/manifest.ttl'),
ns_serdtest + 'pattern/',
'--',
- '-x',
+ ['-I', 'variables'],
],
'perfect_forward': [
files('extra/perfect/manifest.ttl'),
@@ -519,7 +520,7 @@ test_suites = {
files('extra/qualify/manifest.ttl'),
ns_serdtest + 'qualify/',
'--',
- ['-i', 'turtle'], # Just for coverage
+ ['-I', 'turtle'], # Just for coverage
],
'root': [
files('extra/root/manifest.ttl'),
@@ -531,7 +532,7 @@ test_suites = {
files('extra/terse/manifest.ttl'),
ns_serdtest + 'terse/',
'--',
- '-t',
+ ['-O', 'terse'],
],
}