]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-standardoutput-file.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / test-execute / exec-standardoutput-file.service
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2 [Unit]
3 Description=Test for StandardOutput=file:
4
5 [Service]
6 ExecStartPre=sh -c 'printf "nooo\nhello\n" >/tmp/test-exec-standardoutput-output'
7 ExecStartPre=sh -c 'printf "hello\nello\n" >/tmp/test-exec-standardoutput-expected'
8 StandardInput=data
9 StandardInputText=hello
10 StandardOutput=file:/tmp/test-exec-standardoutput-output
11 StandardError=null
12 ExecStart=cat
13 ExecStart=cmp /tmp/test-exec-standardoutput-expected /tmp/test-exec-standardoutput-output
14 Type=oneshot