Skip to content

Commit

Permalink
build: add missing target dependencies for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaos committed Dec 3, 2023
1 parent 4edf9d5 commit 28b2450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ main_sources = [
'main.h',
]

custom_target('slapt.h',
slapt_h = custom_target('slapt.h',
input: lib_headers,
output: 'slapt.h',
command: [find_program('mkslapth.sh'), join_paths(meson.project_source_root(), 'src'), '@OUTPUT@', lib_headers],
Expand Down
4 changes: 2 additions & 2 deletions t/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ test_path = join_paths(meson.project_source_root(), 't')

check = dependency('check', required: false)
if check.found()
testapp = executable('testapp', test_sources, link_with: libslapt, dependencies: deps + [check], install: false)
testapp = executable('testapp', test_sources + [slapt_h], link_with: libslapt, dependencies: deps + [check], install: false)
test('testsuite', testapp, is_parallel: false, workdir: test_path, env: ['ROOT=' + test_path])
endif

test('clitest', find_program('clitests.sh'), args: [slapt_get.full_path()])
test('clitest', find_program('clitests.sh'), depends: slapt_get, args: [slapt_get.full_path()])

0 comments on commit 28b2450

Please sign in to comment.