Move info panel test to tests subdirectory

This commit is contained in:
Benjamin Berg 2018-04-03 17:32:24 +02:00
parent a9d8ec5747
commit 3c76d52e8e
5 changed files with 24 additions and 20 deletions

View file

@ -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')

21
tests/info/meson.build Normal file
View file

@ -0,0 +1,21 @@
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

View file

@ -1,2 +1,3 @@
subdir('common')
subdir('printers')
subdir('info')