mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: don't disable assert on tests
This fixes #2 where meson errors about tests and assert being disabled.
This commit is contained in:
@ -6,38 +6,44 @@ test_env = [
|
||||
'MALLOC_CHECK_=2',
|
||||
]
|
||||
|
||||
test_capture = executable('test-capture',
|
||||
'test-capture.c',
|
||||
test_cflags = [
|
||||
'-DTEST_DATA_DIR="@0@/data/"'.format(meson.current_source_dir()),
|
||||
'-I' + join_paths(meson.source_root(), 'lib'),
|
||||
]
|
||||
|
||||
test_capture = executable('test-capture', 'test-capture.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: libsysprof_capture_dep,
|
||||
)
|
||||
test('test-capture', test_capture, env: test_env)
|
||||
|
||||
test_capture_cursor = executable('test-capture-cursor',
|
||||
'test-capture-cursor.c',
|
||||
test_capture_cursor = executable('test-capture-cursor', 'test-capture-cursor.c',
|
||||
c_args: test_cflags,
|
||||
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'],
|
||||
# Use ./tests/test-kallsyms /proc/kallsyms to test (as user or root)
|
||||
test_kallsyms = executable('test-kallsyms', ['test-kallsyms.c', '../lib/sp-kallsyms.c'],
|
||||
c_args: test_cflags,
|
||||
dependencies: libsysprof_dep,
|
||||
)
|
||||
|
||||
if get_option('enable_gtk')
|
||||
|
||||
test_model_filter = executable('test-model-filter',
|
||||
'test-model-filter.c',
|
||||
test_model_filter = executable('test-model-filter', 'test-model-filter.c',
|
||||
c_args: test_cflags,
|
||||
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',
|
||||
test_process_model = executable('test-process-model', 'test-process-model.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: libsysprof_ui_dep,
|
||||
)
|
||||
|
||||
test_zoom = executable('test-zoom',
|
||||
'test-zoom.c',
|
||||
test_zoom = executable('test-zoom', 'test-zoom.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: libsysprof_ui_dep,
|
||||
)
|
||||
test('test-zoom', test_zoom, env: test_env)
|
||||
|
||||
Reference in New Issue
Block a user