]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/test-execute/exec-standardoutput-file.service
Merge pull request #10811 from keszybz/define-main-through-macro
[thirdparty/systemd.git] / test / test-execute / exec-standardoutput-file.service
CommitLineData
566b7d23
ZD
1[Unit]
2Description=Test for StandardOutput=file:
3
4[Service]
5ExecStartPre=sh -c 'printf "nooo\nhello\n" > /tmp/test-exec-standardoutput-output'
6ExecStartPre=sh -c 'printf "hello\nello\n" > /tmp/test-exec-standardoutput-expected'
7StandardInput=data
8StandardInputText=hello
9StandardOutput=file:/tmp/test-exec-standardoutput-output
10StandardError=null
11ExecStart=cat
12ExecStart=cmp /tmp/test-exec-standardoutput-expected /tmp/test-exec-standardoutput-output
13Type=oneshot