summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-09-30 12:18:34 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-10-02 03:52:45 +0200
commit1d3ef11dfe9d59d0d8a5eeeee401b372124923e9 (patch)
treeb8b61e0d595d902ad67354aff840850472453d25
parentjournal-remote: drop dependencies to journald (diff)
downloadsystemd-1d3ef11dfe9d59d0d8a5eeeee401b372124923e9.tar.xz
systemd-1d3ef11dfe9d59d0d8a5eeeee401b372124923e9.zip
journal: move several tests to libsystemd/sd-journal
This also renames test-journal-xyz for journald (rather than sd-journal) to test-journald-xyz.
-rw-r--r--src/journal/meson.build24
-rw-r--r--src/journal/test-journald-config.c (renamed from src/journal/test-journal-config.c)0
-rw-r--r--src/journal/test-journald-syslog.c (renamed from src/journal/test-journal-syslog.c)0
-rw-r--r--src/libsystemd/meson.build12
-rw-r--r--src/libsystemd/sd-journal/test-journal-append.c (renamed from src/journal/test-journal-append.c)0
-rw-r--r--src/libsystemd/sd-journal/test-journal-flush.c (renamed from src/journal/test-journal-flush.c)0
-rw-r--r--src/libsystemd/sd-journal/test-journal-interleaving.c (renamed from src/journal/test-journal-interleaving.c)0
-rw-r--r--src/libsystemd/sd-journal/test-journal-stream.c (renamed from src/journal/test-journal-stream.c)0
-rw-r--r--src/libsystemd/sd-journal/test-journal-verify.c (renamed from src/journal/test-journal-verify.c)0
-rw-r--r--src/libsystemd/sd-journal/test-journal.c (renamed from src/journal/test-journal.c)0
10 files changed, 14 insertions, 22 deletions
diff --git a/src/journal/meson.build b/src/journal/meson.build
index 6ae5cfbf9d..a3aa8ad5ee 100644
--- a/src/journal/meson.build
+++ b/src/journal/meson.build
@@ -103,11 +103,7 @@ executables += [
],
},
journal_test_template + {
- 'sources' : files('test-journal-append.c'),
- 'type' : 'manual',
- },
- journal_test_template + {
- 'sources' : files('test-journal-config.c'),
+ 'sources' : files('test-journald-config.c'),
'dependencies' : [
liblz4,
libselinux,
@@ -115,16 +111,7 @@ executables += [
],
},
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'),
+ 'sources' : files('test-journald-syslog.c'),
'dependencies' : [
liblz4,
libselinux,
@@ -132,13 +119,6 @@ executables += [
threads,
],
},
- journal_test_template + {
- 'sources' : files('test-journal-verify.c'),
- 'timeout' : 90,
- },
- journal_test_template + {
- 'sources' : files('test-journal.c'),
- },
journal_fuzz_template + {
'sources' : files(
'fuzz-journald-audit.c',
diff --git a/src/journal/test-journal-config.c b/src/journal/test-journald-config.c
index 1a6c531f4e..1a6c531f4e 100644
--- a/src/journal/test-journal-config.c
+++ b/src/journal/test-journald-config.c
diff --git a/src/journal/test-journal-syslog.c b/src/journal/test-journald-syslog.c
index 84cfcefc3a..84cfcefc3a 100644
--- a/src/journal/test-journal-syslog.c
+++ b/src/journal/test-journald-syslog.c
diff --git a/src/libsystemd/meson.build b/src/libsystemd/meson.build
index bcf8e1faf8..5d18f974ba 100644
--- a/src/libsystemd/meson.build
+++ b/src/libsystemd/meson.build
@@ -172,6 +172,10 @@ simple_tests += files(
'sd-device/test-sd-device-monitor.c',
'sd-device/test-sd-device.c',
'sd-event/test-event.c',
+ 'sd-journal/test-journal-flush.c',
+ 'sd-journal/test-journal-interleaving.c',
+ 'sd-journal/test-journal-stream.c',
+ 'sd-journal/test-journal.c',
'sd-login/test-login.c',
'sd-netlink/test-netlink.c',
)
@@ -235,6 +239,14 @@ libsystemd_tests += [
'timeout' : 120,
},
{
+ 'sources' : files('sd-journal/test-journal-append.c'),
+ 'type' : 'manual',
+ },
+ {
+ 'sources' : files('sd-journal/test-journal-verify.c'),
+ 'timeout' : 90,
+ },
+ {
'sources' : files('sd-resolve/test-resolve.c'),
'dependencies' : threads,
'timeout' : 120,
diff --git a/src/journal/test-journal-append.c b/src/libsystemd/sd-journal/test-journal-append.c
index fbbf44add4..fbbf44add4 100644
--- a/src/journal/test-journal-append.c
+++ b/src/libsystemd/sd-journal/test-journal-append.c
diff --git a/src/journal/test-journal-flush.c b/src/libsystemd/sd-journal/test-journal-flush.c
index b5956d24fc..b5956d24fc 100644
--- a/src/journal/test-journal-flush.c
+++ b/src/libsystemd/sd-journal/test-journal-flush.c
diff --git a/src/journal/test-journal-interleaving.c b/src/libsystemd/sd-journal/test-journal-interleaving.c
index d8588759d1..d8588759d1 100644
--- a/src/journal/test-journal-interleaving.c
+++ b/src/libsystemd/sd-journal/test-journal-interleaving.c
diff --git a/src/journal/test-journal-stream.c b/src/libsystemd/sd-journal/test-journal-stream.c
index 2897de4905..2897de4905 100644
--- a/src/journal/test-journal-stream.c
+++ b/src/libsystemd/sd-journal/test-journal-stream.c
diff --git a/src/journal/test-journal-verify.c b/src/libsystemd/sd-journal/test-journal-verify.c
index 7853b36495..7853b36495 100644
--- a/src/journal/test-journal-verify.c
+++ b/src/libsystemd/sd-journal/test-journal-verify.c
diff --git a/src/journal/test-journal.c b/src/libsystemd/sd-journal/test-journal.c
index a0916a0a24..a0916a0a24 100644
--- a/src/journal/test-journal.c
+++ b/src/libsystemd/sd-journal/test-journal.c