Debian Codegraph @

src/libsysprof/tests/meson.build

raw
1 libsysprof_test_env = [
2 'G_DEBUG=gc-friendly',
3 'GSETTINGS_BACKEND=memory',
4 'MALLOC_CHECK_=2',
5 ]
6
7 libsysprof_testsuite_c_args = [
8 '-DG_ENABLE_DEBUG',
9 '-UG_DISABLE_ASSERT',
10 '-UG_DISABLE_CAST_CHECKS',
11 ]
12
13 libsysprof_testsuite = {
14 'read-build-id' : {'skip': true},
15 'ninja-to-marks' : {'skip': true},
16 'test-allocs-by-func' : {'skip': true},
17 'test-callgraph' : {'skip': true},
18 'test-capture-model' : {'skip': true},
19 'test-cplusplus' : {'cpp': true},
20 'test-elf-loader' : {'skip': true},
21 'test-leak-detector' : {'skip': true},
22 'test-list-counters' : {'skip': true},
23 'test-list-cpu' : {'skip': true},
24 'test-list-files' : {'skip': true},
25 'test-list-functions-by-weight' : {'skip': true},
26 'test-list-jitmap' : {'skip': true},
27 'test-list-overlays' : {'skip': true},
28 'test-maps-parser' : {'skip': true},
29 'test-mark-catalog' : {'skip': true},
30 'test-print-file' : {'skip': true},
31 'test-profiler' : {'skip': true},
32 'test-list-processes' : {'skip': true},
33 'test-list-address-layout' : {'skip': true},
34 'test-symbolize' : {'skip': true},
35 'test-strings' : {},
36 'test-symbol-cache' : {},
37 'top-offenders' : {'skip': true},
38 }
39
40 libsysprof_testsuite_deps = [
41 libsysprof_static_dep,
42 liblinereader_static_dep,
43 ]
44
45 foreach test, params: libsysprof_testsuite
46 if params.get('cpp', false)
47 test_exe = executable(test, '@[email protected]'.format(test),
48 cpp_args: libsysprof_testsuite_c_args,
49 dependencies: libsysprof_testsuite_deps,
50 )
51 else
52 test_exe = executable(test, '@[email protected]'.format(test),
53 c_args: libsysprof_testsuite_c_args,
54 dependencies: libsysprof_testsuite_deps,
55 )
56 endif
57
58 if not params.get('skip', false)
59 test(test, test_exe, env: libsysprof_test_env)
60 endif
61 endforeach