test: hook up more tests with make check
This commit is contained in:
parent
b7def68494
commit
95ea1b90cc
|
@ -994,7 +994,8 @@ noinst_PROGRAMS += \
|
||||||
TESTS += \
|
TESTS += \
|
||||||
test-job-type \
|
test-job-type \
|
||||||
test-env-replace \
|
test-env-replace \
|
||||||
test-strv
|
test-strv \
|
||||||
|
test-unit-name
|
||||||
|
|
||||||
test_engine_SOURCES = \
|
test_engine_SOURCES = \
|
||||||
src/test/test-engine.c
|
src/test/test-engine.c
|
||||||
|
@ -2333,6 +2334,11 @@ noinst_PROGRAMS += \
|
||||||
test-journal-match \
|
test-journal-match \
|
||||||
test-journal-stream
|
test-journal-stream
|
||||||
|
|
||||||
|
TESTS += \
|
||||||
|
test-journal
|
||||||
|
test-journal-match \
|
||||||
|
test-journal-stream
|
||||||
|
|
||||||
pkginclude_HEADERS += \
|
pkginclude_HEADERS += \
|
||||||
src/systemd/sd-journal.h \
|
src/systemd/sd-journal.h \
|
||||||
src/systemd/sd-messages.h
|
src/systemd/sd-messages.h
|
||||||
|
|
|
@ -2,3 +2,4 @@ src/hostname/org.freedesktop.hostname1.policy.in
|
||||||
src/locale/org.freedesktop.locale1.policy.in
|
src/locale/org.freedesktop.locale1.policy.in
|
||||||
src/login/org.freedesktop.login1.policy.in
|
src/login/org.freedesktop.login1.policy.in
|
||||||
src/timedate/org.freedesktop.timedate1.policy.in
|
src/timedate/org.freedesktop.timedate1.policy.in
|
||||||
|
src/core/org.freedesktop.systemd1.policy.in
|
||||||
|
|
|
@ -34,10 +34,12 @@ int main(int argc, char *argv[]) {
|
||||||
static const char test[] = "test", test2[] = "test2";
|
static const char test[] = "test", test2[] = "test2";
|
||||||
Object *o;
|
Object *o;
|
||||||
uint64_t p;
|
uint64_t p;
|
||||||
|
char t[] = "/tmp/journal-XXXXXX";
|
||||||
|
|
||||||
log_set_max_level(LOG_DEBUG);
|
log_set_max_level(LOG_DEBUG);
|
||||||
|
|
||||||
unlink("test.journal");
|
assert_se(mkdtemp(t));
|
||||||
|
assert_se(chdir(t) >= 0);
|
||||||
|
|
||||||
assert_se(journal_file_open("test.journal", O_RDWR|O_CREAT, 0666, NULL, &f) == 0);
|
assert_se(journal_file_open("test.journal", O_RDWR|O_CREAT, 0666, NULL, &f) == 0);
|
||||||
|
|
||||||
|
@ -116,5 +118,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
log_error("Exiting...");
|
log_error("Exiting...");
|
||||||
|
|
||||||
|
assert_se(rm_rf(t, false, true, false) >= 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue