mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
tests: drop old tests directory
This commit is contained in:
@ -1,115 +0,0 @@
|
||||
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',
|
||||
'NO_AT_BRIDGE=1',
|
||||
]
|
||||
|
||||
test_cflags = [
|
||||
'-DTEST_DATA_DIR="@0@/data/"'.format(meson.current_source_dir()),
|
||||
'-DSYSPROF_COMPILATION=1',
|
||||
]
|
||||
|
||||
test_capture_deps = [
|
||||
dependency('glib-2.0'),
|
||||
libsysprof_capture_dep,
|
||||
]
|
||||
|
||||
test_capture = executable('test-capture', 'test-capture.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_capture_deps,
|
||||
)
|
||||
|
||||
test_capture_cursor = executable('test-capture-cursor', 'test-capture-cursor.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_capture_deps,
|
||||
)
|
||||
|
||||
test_mapped_ring_buffer = executable('test-mapped-ring-buffer', 'test-mapped-ring-buffer.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_capture_deps,
|
||||
)
|
||||
|
||||
find_temp_allocs = executable('find-temp-allocs', 'find-temp-allocs.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_capture_deps,
|
||||
)
|
||||
|
||||
test('test-capture', test_capture, env: test_env)
|
||||
test('test-capture-cursor', test_capture_cursor, env: test_env)
|
||||
test('test-mapped-ring-buffer', test_mapped_ring_buffer, env: test_env)
|
||||
|
||||
if get_option('libsysprof')
|
||||
test_deps = [
|
||||
libsysprof_static_dep,
|
||||
]
|
||||
|
||||
test_addr_map = executable('test-addr-map', 'test-addr-map.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
test_addr_decode = executable('test-addr-decode', 'test-addr-decode.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
test_mountinfo = executable('test-mountinfo', 'test-mountinfo.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
test_flatpak = executable('test-flatpak', 'test-flatpak.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
test_resolvers = executable('test-resolvers', 'test-resolvers.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
allocs_by_size = executable('allocs-by-size', 'allocs-by-size.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
allocs_within_mark = executable('allocs-within-mark', 'allocs-within-mark.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
cross_thread_frees = executable('cross-thread-frees', 'cross-thread-frees.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
memory_stack_stash = executable('memory-stack-stash', 'memory-stack-stash.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
read_build_id = executable('read-build-id', 'read-build-id.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps,
|
||||
)
|
||||
|
||||
show_page_usage = executable('show-page-usage', 'show-page-usage.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: test_deps + [dependency('cairo')],
|
||||
)
|
||||
|
||||
list_pid_maps = executable('list-all-maps', 'list-all-maps.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: [libsysprof_static_dep],
|
||||
include_directories: include_directories('..'),
|
||||
)
|
||||
|
||||
list_maps = executable('list-maps', 'list-maps.c',
|
||||
c_args: test_cflags,
|
||||
dependencies: [libsysprof_static_dep],
|
||||
include_directories: include_directories('..'),
|
||||
)
|
||||
endif
|
||||
Reference in New Issue
Block a user