Pierre Bourdon
4b886d9c45
Some checks are pending
Test / tests (push) Waiting to run
There are some known regressions regarding local testing setups - since everything was kinda half written with the expectation that build dir = source dir (which should not be true anymore). But everything builds and the test suite runs fine, after several hours spent debugging random crashes in libpqxx with MALLOC_PERTURB_...
43 lines
1.1 KiB
Meson
43 lines
1.1 KiB
Meson
fs = import('fs')
|
|
|
|
test('perlcritic',
|
|
perl,
|
|
args: ['-w', files('perlcritic.pl')],
|
|
workdir: meson.project_source_root(),
|
|
timeout: -1,
|
|
)
|
|
|
|
testenv = environment(
|
|
{
|
|
'BZR_HOME': meson.current_build_dir() / 'data',
|
|
'HYDRA_DBI': 'dbi:Pg:dbname=hydra-test-suite;port=6433',
|
|
'HYDRA_DATA': meson.current_build_dir() / 'data',
|
|
'HYDRA_HOME': meson.project_source_root() / 'src',
|
|
'PGHOST': '/tmp',
|
|
'PYTHONPATH': '',
|
|
|
|
# libpqxx seems to randomly crash with certain values of MALLOC_PERTURB_,
|
|
# set by default by Meson's test(). Very promising, high quality software.
|
|
'MALLOC_PERTURB_': '0',
|
|
},
|
|
)
|
|
testenv.prepend('PERL5LIB',
|
|
meson.current_source_dir(),
|
|
meson.project_source_root() / 'src/lib',
|
|
separator: ':'
|
|
)
|
|
testenv.prepend('PATH',
|
|
fs.parent(hydra_evaluator.full_path()),
|
|
fs.parent(hydra_queue_runner.full_path()),
|
|
meson.project_source_root() / 'src/script',
|
|
separator: ':'
|
|
)
|
|
|
|
test('testsuite',
|
|
perl,
|
|
args: ['-I', meson.current_source_dir() / 'lib', '-w', files('test.pl')],
|
|
env: testenv,
|
|
workdir: meson.current_source_dir(),
|
|
timeout: -1,
|
|
)
|