Commit 3c76d52e authored by Benjamin Berg's avatar Benjamin Berg
Browse files

Move info panel test to tests subdirectory

parent a9d8ec57
......@@ -64,32 +64,14 @@ deps = common_deps + [
dependency('libgtop-2.0')
]
panels_libs += static_library(
info_panel_lib = static_library(
cappletname,
sources: sources,
include_directories: [ top_inc, common_inc ],
dependencies: deps,
c_args: cflags
)
test_name = 'test-info-cleanup'
sources = files(
'info-cleanup.c',
test_name + '.c'
)
cflags += ['-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir())]
exe = executable(
test_name,
sources,
include_directories: top_inc,
dependencies: deps,
c_args: cflags
)
test(name, exe)
panels_libs += info_panel_lib
# FIXME: workaround for updating different sources code
input_dir = join_paths(meson.source_root(), '..', 'gnome-settings-daemon', 'plugins', 'housekeeping')
......
test_units = [
'test-info-cleanup'
]
includes = [top_inc, include_directories('../../panels/info')]
cflags = '-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir())
foreach unit: test_units
exe = executable(
unit,
[unit + '.c'],
include_directories: includes,
dependencies: common_deps,
link_with: [info_panel_lib],
c_args: cflags
)
test(unit, exe)
endforeach
subdir('common')
subdir('printers')
subdir('info')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment