Skip to content

Commit

Permalink
Fix building when pytest is not installed
Browse files Browse the repository at this point in the history
Add "verbose: true" to test() when it is possible to raise minimum Meson
to >= 0.62.
  • Loading branch information
cjmayo committed Mar 24, 2024
1 parent 6a06bd3 commit 06e34bb
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,17 @@ custom_target('cp_confdata',
build_by_default: true,
)

test('testing',
find_program('pytest', required: false),
args: ['-v',
'fract4d',
'fract4dgui',
'fract4d_compiler',
'test.py',
],
timeout: 60,
workdir: meson.project_source_root(),
)
pytest = find_program('pytest', required: false)
if pytest.found()
test('testing',
pytest,
args: [
'fract4d',
'fract4dgui',
'fract4d_compiler',
'test.py',
],
timeout: 60,
workdir: meson.project_source_root(),
)
endif

0 comments on commit 06e34bb

Please sign in to comment.