Skip to content

Commit

Permalink
meson.build: split the pytest invocations into separate ones
Browse files Browse the repository at this point in the history
In the meson test run, split the pytests across multiple invocations.
This makes it slighly easier to debug and also avoids any timeout issues
since we no longer have one long test run.
  • Loading branch information
whot committed May 16, 2024
1 parent 99d25f5 commit 84ad9d4
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,25 @@ if get_option('tests').enabled()
env.set('LD_LIBRARY_PATH', fs.parent(lib_libwacom.full_path()))
pymod.find_installation(modules: ['libevdev', 'pyudev', 'pytest'])
pytest = find_program('pytest-3', 'pytest')
test('pytest',
pytest,
args: ['--verbose',
'-rfES',
'--log-level=DEBUG',
'--log-file', meson.project_build_root() / 'meson-logs' / 'pytest.log',
'--log-file-level=DEBUG',
meson.current_source_dir()
],
env: env,
suite: ['all'])
pytest_files = [
'test_data_files.py',
'test_libwacom.py',
'test_svg.py',
'test_udev_rules.py',
]
foreach f: pytest_files
test('pytest @0@'.format(f),
pytest,
args: ['--verbose',
'-rfES',
'--log-level=DEBUG',
'--log-file', meson.project_build_root() / 'meson-logs' / 'pytest.log',
'--log-file-level=DEBUG',
meson.current_source_dir() / 'test' / f,
],
env: env,
suite: ['all'])
endforeach
endif
endif

Expand Down

0 comments on commit 84ad9d4

Please sign in to comment.