Commit d2d4980c authored by Benjamin Berg's avatar Benjamin Berg

Move panel/common tests into new tests subdirectory

parent c2f601a9
......@@ -255,6 +255,8 @@ subdir('panels')
subdir('shell')
subdir('search-provider')
subdir('tests')
if get_option('documentation')
subdir('man')
endif
......
......@@ -139,25 +139,3 @@ run_target(
command: script
)
test_unit = 'test-hostname'
sources = files(
'hostname-helper.c',
test_unit + '.c'
)
cflags = [
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
'-DTEST_TOPSRCDIR="@0@"'.format(meson.source_root())
]
exe = executable(
test_unit,
sources,
include_directories: top_inc,
dependencies: [ common_deps, libwidgets_dep ],
c_args: cflags
)
test(test_unit, exe)
test_unit = 'test-hostname'
sources = files(
test_unit + '.c'
)
cflags = [
'-DTEST_SRCDIR="@0@"'.format(meson.current_source_dir()),
'-DTEST_TOPSRCDIR="@0@"'.format(meson.source_root())
]
exe = executable(
test_unit,
sources,
include_directories: [ top_inc, common_inc ],
dependencies: common_deps + [libwidgets_dep],
c_args: cflags,
)
test(test_unit, exe)
subdir('common')
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