Commit a9d8ec57 authored by Benjamin Berg's avatar Benjamin Berg
Browse files

Move printers panel tests into tests folder

parent d2d4980c
......@@ -66,34 +66,12 @@ deps = common_deps + [
cflags += '-DGNOMELOCALEDIR="@0@"'.format(control_center_localedir)
panels_libs += static_library(
printers_panel_lib = static_library(
cappletname,
sources: sources,
include_directories: [top_inc, common_inc, shell_inc],
dependencies: deps,
c_args: cflags
)
panels_libs += [ printers_panel_lib ]
test_units = [
'test-canonicalization',
'test-shift'
]
sources = files(
'pp-print-device.c',
'pp-utils.c'
)
cflags += '-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir())
foreach unit: test_units
exe = executable(
unit,
[unit + '.c'] + sources,
include_directories: top_inc,
dependencies: deps,
c_args: cflags
)
test(unit, exe)
endforeach
subdir('common')
subdir('printers')
test_units = [
'test-canonicalization',
'test-shift'
]
includes = [top_inc, include_directories('../../panels/printers')]
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: [printers_panel_lib],
c_args: cflags
)
test(unit, exe)
endforeach
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