]> git.ipfire.org Git - thirdparty/systemd.git/blame - 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
CommitLineData
22d3cfe5 1# SPDX-License-Identifier: LGPL-2.1-or-later
566b7d23
ZD
2[Unit]
3Description=Test for StandardOutput=file:
4
5[Service]
0ee99483
ZJS
6ExecStartPre=sh -c 'printf "nooo\nhello\n" >/tmp/test-exec-standardoutput-output'
7ExecStartPre=sh -c 'printf "hello\nello\n" >/tmp/test-exec-standardoutput-expected'
566b7d23
ZD
8StandardInput=data
9StandardInputText=hello
10StandardOutput=file:/tmp/test-exec-standardoutput-output
11StandardError=null
12ExecStart=cat
13ExecStart=cmp /tmp/test-exec-standardoutput-expected /tmp/test-exec-standardoutput-output
14Type=oneshot