summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-10 23:57:26 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-10 23:57:26 +0200
commit28c6425e4ed1cd2eab538e7cba08c18aa83d8af5 (patch)
tree311d9745ecc7f9ef8f95c2705c44530d0330c26b /meson.build
parentac878281d42b9e5291f96204283c65229c8f392a (diff)
Improve test coverage of io and unicode
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build20
1 files changed, 16 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index c3b6302..b0708c2 100644
--- a/meson.build
+++ b/meson.build
@@ -199,16 +199,27 @@ test('csv', executable(
],
))
-test('line', executable(
- 'test_line',
+io_test_helper_lib = library(
+ 'io_test_helper',
sources: [
- 'test/line.cc',
- 'test/io_test_helper.hh',
'test/io_test_helper.cc',
+ 'test/io_test_helper.hh',
],
include_directories: inc,
+ dependencies: io_dep,
+)
+io_test_helper_dep = declare_dependency(
+ link_with: io_test_helper_lib,
+ dependencies: io_dep,
+)
+
+test('line', executable(
+ 'test_line',
+ sources: ['test/line.cc'],
+ include_directories: inc,
dependencies: [
io_dep,
+ io_test_helper_dep,
test_dependencies,
],
))
@@ -229,6 +240,7 @@ test('io', executable(
include_directories: inc,
dependencies: [
io_dep,
+ io_test_helper_dep,
test_dependencies,
],
))