]> git.ipfire.org Git - thirdparty/systemd.git/blob - test/test-execute/exec-standardinput-data.service
core: use id unit when retrieving unit file state (#8038)
[thirdparty/systemd.git] / test / test-execute / exec-standardinput-data.service
1 [Unit]
2 Description=Test for StandardInputText= and StandardInputData=
3
4 [Service]
5 ExecStart=/bin/sh -x -c 'd=$$(mktemp -d -p /tmp); echo -e "this is a test\nand this is more\nsomething encoded!\nsomething in multiple lines\nand some more\nand a more bas64 data\nsomething with strange\nembedded\tcharacters\nand something with a exec-stdin-data.service specifier" > $d/text ; cmp $d/text ; rm -rf $d'
6 Type=oneshot
7 StandardInput=data
8 StandardInputText=this is a test
9 StandardInputText=and this is more
10 StandardInputData=c29tZXRoaW5nIGVuY29kZWQhCg==
11 StandardInputText=something \
12 in multiple lines
13 StandardInputText=\
14 and some more
15 StandardInputData=YW5kIGEgbW9y \
16 ZSBiYXM2NCBk\
17 YXRhCg==
18 StandardInputText=something with strange\nembedded\tcharacters
19 StandardInputText=and something with a %n specifier