summaryrefslogtreecommitdiff
path: root/test/test-execute/exec-passenvironment-absent.service
Commit message (Collapse)AuthorAgeFilesLines
* tests: add spdx license header to test unit/link/network/conf filesZbigniew Jędrzejewski-Szmek2021-10-181-0/+1
| | | | | | | | Those are all consumed by our parser, so they all support comments. I was considering whether they should have a license header at all, but in the end I decided to add it because those files are often created by copying parts of real unit files. And if the real ones have a license, then those might as well. It's easier to add it than to make an exception.
* test: add testcase for environment file variables with backslashesJoost Heitbrink2018-05-111-2/+2
| | | | | systemd silently strips out backslashes in variables from environment files. Add a testcase that explicitly tests for this behaviour.
* test-execute: Introduce tests for environment values containing newlinesFilipe Brandenburger2018-03-161-2/+2
| | | | | | | Also fix one case where the presence of a newline was used to generate an invalid environment assignment. Tested: with mkosi, which builds the local tree and run ninja tests.
* test-execute: Add tests for new PassEnvironment= directiveFilipe Brandenburger2015-11-111-0/+7
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.