Skip to content

Commit

Permalink
build: Update test rules
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Sep 5, 2024
1 parent 4ca2a36 commit 2e5542c
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2e5542c

Please sign in to comment.