]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/test-execute/exec-passenvironment-repeated.service
tests: add spdx license header to test unit/link/network/conf files
[thirdparty/systemd.git] / test / test-execute / exec-passenvironment-repeated.service
index 5e8c56f26afa0fd5cbb1566c1ccb50b177741448..b8e904fb6d28d722cdc4790282fa89a67a5da0f0 100644 (file)
@@ -1,8 +1,11 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
 [Unit]
 Description=Test for PassEnvironment with a variable name repeated
 
 [Service]
-ExecStart=/bin/sh -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = "\\$$word 5 6"'
+ExecStart=/bin/sh -x -c 'test "$$VAR1" = "word1 word2" && test "$$VAR2" = word3 && test "$$VAR3" = "\\$$word 5 6" && test "$$VAR4" = "new\nline" && test "$$VAR5" = passwordwithbackslashes'
 Type=oneshot
 PassEnvironment=VAR1 VAR2
 PassEnvironment=VAR1 VAR3
+PassEnvironment=VAR1 VAR4
+PassEnvironment=VAR1 VAR5