| 1 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | |
| 3 | test_env = environment() |
| 4 | test_env.set('PYTHONPATH', meson.project_source_root() / 'scripts') |
| 5 | test_env.set('PYTHONIOENCODING', 'utf-8') |
| 6 | |
| 7 | backends = [ |
| 8 | 'dtrace', |
| 9 | 'ftrace', |
| 10 | 'log', |
| 11 | 'simple', |
| 12 | 'syslog', |
| 13 | 'ust' |
| 14 | ] |
| 15 | |
| 16 | # The tracetool-test.py program has portability problems on Windows. |
| 17 | if host_machine.system() != 'windows' |
| 18 | foreach backend: backends |
| 19 | test(backend, |
| 20 | python, |
| 21 | args: [meson.current_source_dir() / 'tracetool-test.py', |
| 22 | meson.project_source_root() / 'scripts' / 'tracetool.py', |
| 23 | backend, |
| 24 | meson.current_source_dir(), |
| 25 | meson.current_build_dir()], |
| 26 | suite: ['tracetool']) |
| 27 | endforeach |
| 28 | endif |