]> git.ipfire.org Git - thirdparty/systemd.git/commit
test-execute: Add tests for new PassEnvironment= directive
authorFilipe Brandenburger <filbranden@google.com>
Sun, 8 Nov 2015 18:37:05 +0000 (10:37 -0800)
committerFilipe Brandenburger <filbranden@google.com>
Wed, 11 Nov 2015 15:55:23 +0000 (07:55 -0800)
commit4c80d201ace0377312c27143afab04e9c9f1ee64
tree1d17a615d8278d640961a11a9c8eb06bcb5fe77d
parent4ad4beec7f927d1d592d85bba6af2f7ba106ad8b
test-execute: Add tests for new PassEnvironment= directive

Check the base case, plus erasing the list, listing the same variable
name more than once and when variables are absent from the manager
execution environment.

Confirmed that `sudo ./test-execute` passes and that modifying the test
cases (or the values of the set variables in test-execute.c) is enough
to make the test cases fail.
Makefile.am
src/test/test-execute.c
test/test-execute/exec-passenvironment-absent.service [new file with mode: 0644]
test/test-execute/exec-passenvironment-empty.service [new file with mode: 0644]
test/test-execute/exec-passenvironment-repeated.service [new file with mode: 0644]
test/test-execute/exec-passenvironment.service [new file with mode: 0644]