File: meson.build

package info (click to toggle)
xraylib 4.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 46,976 kB
  • sloc: ansic: 16,363; f90: 9,202; java: 6,998; python: 1,580; cpp: 1,317; pascal: 1,139; makefile: 810; ruby: 622; php: 594; perl: 573; cs: 193; sh: 160
file content (44 lines) | stat: -rw-r--r-- 925 bytes parent folder | download | duplicates (2)
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