summary refs log tree commit diff stats
path: root/tests/tracetool/meson.build
blob: 09bbaaa86bf49eb56de5c36f04c490db0f7e8607 (plain) (blame)
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
# SPDX-License-Identifier: GPL-2.0-or-later

test_env = environment()
test_env.set('PYTHONPATH', meson.project_source_root() / 'scripts')
test_env.set('PYTHONIOENCODING', 'utf-8')

backends = [
    'dtrace',
    'ftrace',
    'log',
    'simple',
    'syslog',
    'ust'
]

# The tracetool-test.py program has portability problems on Windows.
if host_machine.system() != 'windows'
    foreach backend: backends
        test(backend,
             python,
             args: [meson.current_source_dir() / 'tracetool-test.py',
                    meson.project_source_root() / 'scripts' / 'tracetool.py',
                    backend,
                    meson.current_source_dir(),
                    meson.current_build_dir()],
             suite: ['tracetool'])
    endforeach
endif