Files
sysprof/tests/meson.build
Christian Hergert 911d51d447 kallsyms: make SpKallsyms more testable
This allows us to pass in the file to read from, and adds a quick test
case to view the parsed output. It also fixes a base-10 vs base-16
mistake in parsing addresses.
2018-01-29 01:38:35 -08:00

46 lines
1.1 KiB
Meson

test_env = [
'G_TEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
'G_TEST_BUILDDIR="@0@"'.format(meson.current_build_dir()),
'G_DEBUG=gc-friendly',
'GSETTINGS_BACKEND=memory',
'MALLOC_CHECK_=2',
]
test_capture = executable('test-capture',
'test-capture.c',
dependencies: libsysprof_capture_dep,
)
test('test-capture', test_capture, env: test_env)
test_capture_cursor = executable('test-capture-cursor',
'test-capture-cursor.c',
dependencies: libsysprof_dep,
)
test('test-capture-cursor', test_capture_cursor, env: test_env)
test_kallsyms = executable('test-kallsyms',
['test-kallsyms.c', '../lib/sp-kallsyms.c'],
dependencies: libsysprof_dep,
)
if get_option('enable_gtk')
test_model_filter = executable('test-model-filter',
'test-model-filter.c',
dependencies: libsysprof_ui_dep,
)
test('test-model-filter', test_model_filter, env: test_env)
test_process_model = executable('test-process-model',
'test-process-model.c',
dependencies: libsysprof_ui_dep,
)
test_zoom = executable('test-zoom',
'test-zoom.c',
dependencies: libsysprof_ui_dep,
)
test('test-zoom', test_zoom, env: test_env)
endif