Skip to content

Commit

Permalink
test/meson: run existing pytests
Browse files Browse the repository at this point in the history
  • Loading branch information
ejoerns committed Aug 31, 2023
1 parent f5b3e2c commit d1e0c23
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,25 @@ rauc_t = find_program(
'rauc.t'
)

pytest = find_program('pytest')

if pytest.found()
pytests = [
'test_cmdline',
'test_rauc_info',
'test_rauc_bundle']
foreach test_name : pytests
test(
'pytest_' + test_name,
pytest,
args: ['-vv', test_name + '.py'],
is_parallel : false,
timeout : 120,
workdir : meson.current_source_dir(),
)
endforeach
endif

test(
'rauc.t',
rauc_t,
Expand Down

0 comments on commit d1e0c23

Please sign in to comment.