diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-31 23:59:30 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-03 23:59:51 +0900 |
commit | 2b633119a073895c50d571fd8b32c5064a13806b (patch) | |
tree | 06434ee41e4f16fe11ebb47439fd4cc2a929b60e /test | |
parent | 2f4d31c1173e51ea40631bf1bb9b15e01ab318e9 (diff) | |
download | systemd-2b633119a073895c50d571fd8b32c5064a13806b.tar.gz systemd-2b633119a073895c50d571fd8b32c5064a13806b.tar.bz2 systemd-2b633119a073895c50d571fd8b32c5064a13806b.zip |
test: add test for trailing dot in WorkingDirectory= and RuntimeDirectory=
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 1 | ||||
-rw-r--r-- | test/test-execute/exec-runtimedirectory.service | 2 | ||||
-rw-r--r-- | test/test-execute/exec-workingdirectory-trailing-dot.service | 7 |
3 files changed, 10 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build index 162f63f1ed..9d4c7dbb72 100644 --- a/test/meson.build +++ b/test/meson.build @@ -145,6 +145,7 @@ test_data_files = ''' test-execute/exec-user-nobody.service test-execute/exec-user.service test-execute/exec-workingdirectory.service + test-execute/exec-workingdirectory-trailing-dot.service test-path/basic.target test-path/path-changed.path test-path/path-changed.service diff --git a/test/test-execute/exec-runtimedirectory.service b/test/test-execute/exec-runtimedirectory.service index d8f242fde2..6a4383110f 100644 --- a/test/test-execute/exec-runtimedirectory.service +++ b/test/test-execute/exec-runtimedirectory.service @@ -3,5 +3,7 @@ Description=Test for RuntimeDirectory [Service] ExecStart=/bin/sh -x -c 'test -d %t/test-exec_runtimedirectory' +ExecStart=/bin/sh -x -c 'test -d %t/test-exec_runtimedirectory2/hogehoge' Type=oneshot RuntimeDirectory=test-exec_runtimedirectory +RuntimeDirectory=./test-exec_runtimedirectory2///./hogehoge/. diff --git a/test/test-execute/exec-workingdirectory-trailing-dot.service b/test/test-execute/exec-workingdirectory-trailing-dot.service new file mode 100644 index 0000000000..5c807b3172 --- /dev/null +++ b/test/test-execute/exec-workingdirectory-trailing-dot.service @@ -0,0 +1,7 @@ +[Unit] +Description=Test for WorkingDirectory with trailing dot + +[Service] +ExecStart=/bin/sh -x -c 'test "$$PWD" = "/tmp/test-exec_workingdirectory"' +Type=oneshot +WorkingDirectory=/tmp///./test-exec_workingdirectory/. |