1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
python_tests = [
'atomiclevelwidth',
'atomicweight',
'auger',
'compoundparser',
'comptonprofiles',
'crystal_diffraction',
'nist-compounds',
'radionuclides',
'numpy',
]
python_numpy_tests = []
python_test_env = environment()
python_test_env.prepend('PYTHONPATH', pydir)
if host_system == 'windows'
python_test_env.prepend('PATH', src_build_dir)
python_test_env.append('EXTRA_DLL_SEARCH_PATHS', src_build_dir)
endif
if python_enabled
foreach _test : python_tests
test('python-' + _test,
python,
args : files('test-' + _test + '.py'),
env : python_test_env,
timeout: 10,
depends: [xraylib_ext]
)
endforeach
endif
if python_numpy_enabled
foreach _test : python_numpy_tests
test('python-' + _test,
python,
args : files('test-' + _test + '.py'),
env : python_test_env,
timeout: 10,
depends: [xraylib_np_ext]
)
endforeach
endif
|