From 2e5542c59b4ddfdc6f1afcddec9dcebd09a5c15d Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Thu, 5 Sep 2024 14:13:37 +0800 Subject: [PATCH] build: Update test rules --- meson.build | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/meson.build b/meson.build index 796341227..c5f3350b0 100644 --- a/meson.build +++ b/meson.build @@ -396,17 +396,20 @@ import('pkgconfig').generate(lib_asteria, #=========================================================== if get_option('enable-repl') executable('asteria', - cpp_pch: 'asteria/xprecompiled.hpp', - sources: [ repl_src ], - dependencies: [ dep_editline ], - link_with: lib_asteria, - install: true) + cpp_pch: 'asteria/xprecompiled.hpp', + sources: [ repl_src ], + dependencies: [ dep_editline ], + link_with: lib_asteria, + install: true) endif #=========================================================== # Rules for tests #=========================================================== foreach src: test_src - test(src, executable(src.replace('.cpp', '').underscorify(), src, - link_with: lib_asteria)) + test_exe = executable(src.underscorify(), src, + link_with: lib_asteria, + install: false) + + test('..' / src, test_exe) endforeach