File: meson.build

package info (click to toggle)
iio-sensor-proxy 3.7-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 804 kB
  • sloc: ansic: 5,256; python: 719; xml: 105; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
envs = environment()
envs.set ('top_builddir', meson.build_root())
envs.set ('top_srcdir', meson.source_root())

python3 = find_program('python3')
unittest_inspector = find_program('unittest_inspector.py')
r = run_command(unittest_inspector, files('integration-test.py'), check: true)
unit_tests = r.stdout().strip().split('\n')

foreach ut: unit_tests
    ut_args = files('integration-test.py')
    ut_args += ut
    test(ut,
         python3,
         args: ut_args,
         env: envs,
        )
endforeach