mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
Enable test-daemon, test-log, test-watchdog by default
Those should be safe to run, resulting in some messages in logs.
This commit is contained in:
parent
67a47c6096
commit
134953c99c
@ -1388,11 +1388,8 @@ EXTRA_DIST += \
|
|||||||
manual_tests += \
|
manual_tests += \
|
||||||
test-ns \
|
test-ns \
|
||||||
test-hostname \
|
test-hostname \
|
||||||
test-daemon \
|
|
||||||
test-cgroup \
|
test-cgroup \
|
||||||
test-install \
|
test-install \
|
||||||
test-watchdog \
|
|
||||||
test-log \
|
|
||||||
test-ipcrm \
|
test-ipcrm \
|
||||||
test-btrfs \
|
test-btrfs \
|
||||||
test-acd \
|
test-acd \
|
||||||
@ -1410,8 +1407,11 @@ manual_tests += \
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
tests += \
|
tests += \
|
||||||
|
test-daemon \
|
||||||
|
test-log \
|
||||||
test-loopback \
|
test-loopback \
|
||||||
test-engine \
|
test-engine \
|
||||||
|
test-watchdog \
|
||||||
test-cgroup-mask \
|
test-cgroup-mask \
|
||||||
test-job-type \
|
test-job-type \
|
||||||
test-env-replace \
|
test-env-replace \
|
||||||
|
@ -38,27 +38,27 @@ int main(int argc, char*argv[]) {
|
|||||||
|
|
||||||
sd_notify(0,
|
sd_notify(0,
|
||||||
"STATUS=Starting up");
|
"STATUS=Starting up");
|
||||||
sleep(5);
|
sleep(1);
|
||||||
|
|
||||||
sd_notify(0,
|
sd_notify(0,
|
||||||
"STATUS=Running\n"
|
"STATUS=Running\n"
|
||||||
"READY=1");
|
"READY=1");
|
||||||
sleep(5);
|
sleep(1);
|
||||||
|
|
||||||
sd_notify(0,
|
sd_notify(0,
|
||||||
"STATUS=Reloading\n"
|
"STATUS=Reloading\n"
|
||||||
"RELOADING=1");
|
"RELOADING=1");
|
||||||
sleep(5);
|
sleep(1);
|
||||||
|
|
||||||
sd_notify(0,
|
sd_notify(0,
|
||||||
"STATUS=Running\n"
|
"STATUS=Running\n"
|
||||||
"READY=1");
|
"READY=1");
|
||||||
sleep(5);
|
sleep(1);
|
||||||
|
|
||||||
sd_notify(0,
|
sd_notify(0,
|
||||||
"STATUS=Quitting\n"
|
"STATUS=Quitting\n"
|
||||||
"STOPPING=1");
|
"STOPPING=1");
|
||||||
sleep(5);
|
sleep(1);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user