From 28c6425e4ed1cd2eab538e7cba08c18aa83d8af5 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 10 Sep 2025 23:57:26 +0200 Subject: Improve test coverage of io and unicode --- meson.build | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'meson.build') 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, ], )) -- cgit v1.3