diff options
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/. |