setup_basic_environment
mask_supporting_services
- inst_binary cmp
-
- # setup the testsuite service
- cat >$initdir/etc/systemd/system/testsuite.service <<EOF
-[Unit]
-Description=Testsuite service
-
-[Service]
-ExecStart=/testsuite.sh
-Type=oneshot
-EOF
- cp testsuite.sh $initdir/
-
- setup_testsuite
)
setup_nspawn_root
}
-do_test "$@"
+do_test "$@" 27
systemd-analyze log-level debug
systemd-analyze log-target console
-systemd-run --wait --unit=one \
+systemd-run --wait --unit=test27-one \
-p StandardOutput=file:/tmp/stdout \
-p StandardError=file:/tmp/stderr \
-p Type=exec \
y
EOF
-systemd-run --wait --unit=two \
+systemd-run --wait --unit=test27-two \
-p StandardOutput=file:/tmp/stdout \
-p StandardError=file:/tmp/stderr \
-p Type=exec \
a
EOF
-systemd-run --wait --unit=three \
+systemd-run --wait --unit=test27-three \
-p StandardOutput=append:/tmp/stdout \
-p StandardError=append:/tmp/stderr \
-p Type=exec \
systemd-analyze log-level info
-echo OK > /testok
+echo OK >/testok
exit 0