Move info panel test to tests subdirectory
This commit is contained in:
parent
a9d8ec5747
commit
3c76d52e8e
5 changed files with 24 additions and 20 deletions
|
@ -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
21
tests/info/meson.build
Normal 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
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
subdir('common')
|
||||
subdir('printers')
|
||||
subdir('info')
|
||||
|
|
Loading…
Add table
Reference in a new issue