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 += \
|
||||
test-ns \
|
||||
test-hostname \
|
||||
test-daemon \
|
||||
test-cgroup \
|
||||
test-install \
|
||||
test-watchdog \
|
||||
test-log \
|
||||
test-ipcrm \
|
||||
test-btrfs \
|
||||
test-acd \
|
||||
@ -1410,8 +1407,11 @@ manual_tests += \
|
||||
endif
|
||||
|
||||
tests += \
|
||||
test-daemon \
|
||||
test-log \
|
||||
test-loopback \
|
||||
test-engine \
|
||||
test-watchdog \
|
||||
test-cgroup-mask \
|
||||
test-job-type \
|
||||
test-env-replace \
|
||||
|
@ -38,27 +38,27 @@ int main(int argc, char*argv[]) {
|
||||
|
||||
sd_notify(0,
|
||||
"STATUS=Starting up");
|
||||
sleep(5);
|
||||
sleep(1);
|
||||
|
||||
sd_notify(0,
|
||||
"STATUS=Running\n"
|
||||
"READY=1");
|
||||
sleep(5);
|
||||
sleep(1);
|
||||
|
||||
sd_notify(0,
|
||||
"STATUS=Reloading\n"
|
||||
"RELOADING=1");
|
||||
sleep(5);
|
||||
sleep(1);
|
||||
|
||||
sd_notify(0,
|
||||
"STATUS=Running\n"
|
||||
"READY=1");
|
||||
sleep(5);
|
||||
sleep(1);
|
||||
|
||||
sd_notify(0,
|
||||
"STATUS=Quitting\n"
|
||||
"STOPPING=1");
|
||||
sleep(5);
|
||||
sleep(1);
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user