| 1 |
# SPDX-License-Identifier: LGPL-2.1-or-later |
| 2 |
[Unit] |
| 3 |
Description=Test for StandardInputText= and StandardInputData= |
| 4 |
|
| 5 |
[Service] |
| 6 |
ExecStart=bash -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' |
| 7 |
Type=oneshot |
| 8 |
StandardInput=data |
| 9 |
StandardInputText=this is a test |
| 10 |
StandardInputText=and this is more |
| 11 |
StandardInputData=c29tZXRoaW5nIGVuY29kZWQhCg== |
| 12 |
StandardInputText=something \ |
| 13 |
in multiple lines |
| 14 |
StandardInputText=\ |
| 15 |
and some more |
| 16 |
StandardInputData=YW5kIGEgbW9y \ |
| 17 |
ZSBiYXM2NCBk\ |
| 18 |
YXRhCg== |
| 19 |
StandardInputText=something with strange\nembedded\tcharacters |
| 20 |
StandardInputText=and something with a %n specifier |