aboutsummaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-04-15 18:34:17 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:06 -0500
commita970f06aba98736223214a6fa995f4e82acd7132 (patch)
treefc243e4bf26f4c1f95df6f62abdd6740d87d8afd /test/meson.build
parent44feb2724a8fe34992999867f5b6468228b6fc01 (diff)
downloadserd-a970f06aba98736223214a6fa995f4e82acd7132.tar.gz
serd-a970f06aba98736223214a6fa995f4e82acd7132.tar.bz2
serd-a970f06aba98736223214a6fa995f4e82acd7132.zip
[WIP] Use exess for reading and writing numeric and binary literals
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build35
1 files changed, 30 insertions, 5 deletions
diff --git a/test/meson.build b/test/meson.build
index ad3797df..0ee7cd23 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -131,6 +131,12 @@ unit_tests = [
'writer',
]
+test_env = []
+if build_machine.system() == 'windows' and host_machine.system() == 'windows'
+ # For Windows, we need to add to PATH so that DLLs are found
+ test_env = ['PATH=@0@;@1@'.format('subprojects' / 'exess')]
+endif
+
foreach unit : unit_tests
test(
unit,
@@ -140,6 +146,7 @@ foreach unit : unit_tests
c_args: c_suppressions,
dependencies: serd_dep,
),
+ env: test_env,
suite: 'unit',
)
endforeach
@@ -186,7 +193,7 @@ if is_variable('serdi')
serd_ttl = files('../serd.ttl')[0]
bad_input_file = files('extra/bad/bad-base.ttl')
- test('serd_ttl', serdi, args: [serd_ttl], suite: 'data')
+ test('serd_ttl', serdi, args: [serd_ttl], env: test_env, suite: 'data')
# Command line options
@@ -198,18 +205,20 @@ if is_variable('serdi')
' '.join(args).substring(1).underscorify(),
serdi,
args: args,
+ env: test_env,
should_fail: kind == 'bad',
suite: cmd_suite,
)
endforeach
endforeach
- test('none', serdi, should_fail: true, suite: cmd_suite)
+ test('none', serdi, env: test_env, should_fail: true, suite: cmd_suite)
test(
'quiet',
files('test_quiet.py'),
args: script_args + [bad_input_file],
+ env: test_env,
suite: cmd_suite,
)
@@ -224,10 +233,24 @@ if is_variable('serdi')
}
foreach name, args : bad_input_tests
- test(name, serdi, args: args, should_fail: true, suite: input_suite)
+ test(
+ name,
+ serdi,
+ args: args,
+ env: test_env,
+ should_fail: true,
+ suite: input_suite,
+ )
endforeach
- test('stdin', files('test_stdin.py'), args: script_args, suite: input_suite)
+ test(
+ 'stdin',
+ files('test_stdin.py'),
+ args: script_args,
+ env: test_env,
+ suite: input_suite,
+ )
+
# IO errors
@@ -238,13 +261,14 @@ if is_variable('serdi')
}
foreach name, args : io_error_tests
- test(name, serdi, args: args, should_fail: true, suite: 'io')
+ test(name, serdi, args: args, env: test_env, should_fail: true, suite: 'io')
endforeach
test(
'write_error',
files('test_write_error.py'),
args: script_args + [serd_ttl],
+ env: test_env,
suite: 'io',
)
endif
@@ -387,6 +411,7 @@ if is_variable('serdi')
name,
run_suite,
args: script_args + args,
+ env: test_env,
suite: ['suite'],
timeout: 240,
)