diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-06-26 01:52:26 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-08-03 13:37:16 +0200 |
commit | 130c87b16a572169a3c4978391ca53fc37a19afe (patch) | |
tree | c0fc9759cc8b5516b1f512c952feeddd7ff464e7 /src/journal/meson.build | |
parent | test: rename udev-rule-runner -> test-udev-rule-runner (diff) | |
download | systemd-130c87b16a572169a3c4978391ca53fc37a19afe.tar.xz systemd-130c87b16a572169a3c4978391ca53fc37a19afe.zip |
meson: merge declarations of normal and test executables
Diffstat (limited to 'src/journal/meson.build')
-rw-r--r-- | src/journal/meson.build | 96 |
1 files changed, 44 insertions, 52 deletions
diff --git a/src/journal/meson.build b/src/journal/meson.build index 0c99684770..90170599a7 100644 --- a/src/journal/meson.build +++ b/src/journal/meson.build @@ -41,6 +41,13 @@ else ] endif +journal_test_template = test_template + { + 'link_with' : [ + libjournal_core, + libshared, + ], +} + executables += [ libexec_template + { 'name' : 'systemd-journald', @@ -80,6 +87,43 @@ executables += [ threads, ], }, + journal_test_template + { + 'sources' : files('test-journal-append.c'), + 'type' : 'manual', + }, + journal_test_template + { + 'sources' : files('test-journal-config.c'), + 'dependencies' : [ + liblz4, + libselinux, + libxz, + ], + }, + journal_test_template + { + 'sources' : files('test-journal-flush.c'), + }, + journal_test_template + { + 'sources' : files('test-journal-interleaving.c'), + }, + journal_test_template + { + 'sources' : files('test-journal-stream.c'), + }, + journal_test_template + { + 'sources' : files('test-journal-syslog.c'), + 'dependencies' : [ + liblz4, + libselinux, + libxz, + threads, + ], + }, + journal_test_template + { + 'sources' : files('test-journal-verify.c'), + 'timeout' : 90, + }, + journal_test_template + { + 'sources' : files('test-journal.c'), + }, ] if install_sysconfdir_samples @@ -109,58 +153,6 @@ endif ############################################################ -test_journal_base = { - 'link_with' : [libjournal_core, libshared], -} - -tests += [ - { - 'sources' : files('test-journal-config.c'), - 'dependencies' : [ - liblz4, - libselinux, - libxz, - ], - 'base' : test_journal_base, - }, - { - 'sources' : files('test-journal-flush.c'), - 'base' : test_journal_base, - }, - { - 'sources' : files('test-journal-interleaving.c'), - 'base' : test_journal_base, - }, - { - 'sources' : files('test-journal-stream.c'), - 'base' : test_journal_base, - }, - { - 'sources' : files('test-journal-syslog.c'), - 'dependencies' : [ - liblz4, - libselinux, - libxz, - threads, - ], - 'base' : test_journal_base, - }, - { - 'sources' : files('test-journal-verify.c'), - 'base' : test_journal_base, - 'timeout' : 90, - }, - { - 'sources' : files('test-journal.c'), - 'base' : test_journal_base, - }, - { - 'sources' : files('test-journal-append.c'), - 'base' : test_journal_base, - 'type' : 'manual', - }, -] - fuzzer_journald_base = { 'link_with' : [libjournal_core, libshared], 'dependencies' : [libselinux], |