Yu Watanabe
69b0740785
test-execute: add tests with user/group daemon
...
The nobody user/group may not synthesized by systemd.
To run tests the functionalities in such situation, this adds tests
by user/group by daemon, as it is expected to exists all environments.
2018-03-02 16:42:53 +09:00
Yu Watanabe
d2f95a223f
test-execute: add a test for the case that NOBODY_GROUP_NAME is nogroup
2018-03-01 18:31:26 +09:00
Yu Watanabe
4c40f267c7
test: use "$$" to pass a literal dollar sign
...
Follow-up for 9323298657 .
2018-02-26 12:50:07 +09:00
Yu Watanabe
ac1f08b92b
test: use setup_fake_runtime_dir() in test-execute
2018-02-26 12:50:03 +09:00
Lennart Poettering
72a1db0bb2
test: don't complain if bpffs is world-writable
...
Apparently, world-writable bpffs is intended by the kernel folks, hence
let's make sure we don't choke on it on our tests.
2018-02-21 16:43:36 +01:00
Yu Watanabe
9323298657
test: fix test for TemporaryFileSystem= ( #8241 )
...
This makes test-execute work on SELinux enabled systems.
Fixes the issue reported at
https://github.com/systemd/systemd/pull/7908#discussion_r169583540
2018-02-21 16:43:35 +01:00
Yu Watanabe
4cac89bd7c
test: add tests for TemporaryFileSystem=
2018-02-21 09:18:14 +09:00
Lennart Poettering
66d73cc728
test-execute: use the "nogroup" group if it exists for testing
...
We currently look for "nobody" and "nfsnobody" when testing groups, both
of which do not exist on Ubuntu, our main testing environment. Let's
extend the tests slightly to also use "nogroup" if it exists.
2017-12-06 13:40:50 +01:00
Yu Watanabe
4e79aeaa65
test-execute: add tests for CPUAffinity=
2017-12-06 10:44:20 +09:00
Yu Watanabe
028f3a7f9c
test-execute: add test for that DynamicUser= migrate StateDirectory=
...
Test for 949befd3f0 .
2017-12-06 00:37:09 +09:00
Yu Watanabe
f0e018e748
test-execute: cleanup
...
This makes rename the test units by a consistent naming scheme,
add several logs, and sort internal functions.
No functional change.
2017-12-06 00:36:55 +09:00
Yu Watanabe
8b3c4b5757
test-execute: test more % specifiers ( #7450 )
2017-11-24 10:17:28 +01:00
Lennart Poettering
666d787787
test: add basic test for StandardInput=file:
2017-11-17 11:13:44 +01:00
Lennart Poettering
da543f6a77
test: add tests for StandardInputText= and StandardInputData=
2017-11-17 11:13:44 +01:00
Yu Watanabe
7f749487c5
test-execute: change path to python3 ( #7306 )
...
Change python3 path from /bin/python3 to /usr/bin/python3 to make
the test work on Ubuntu Xenial.
Follow-up for #7178 .
2017-11-12 16:09:00 +01:00
Yu Watanabe
7a18854fe7
test-execute: update test for SystemCallErrorNumber=
2017-11-11 21:54:29 +09:00
Yu Watanabe
b4891260b9
test: add tests for syscall:errno style in SystemCallFilter=
2017-11-11 21:54:20 +09:00
Yu Watanabe
23fd04e92d
test: add test for ReadOnlyPaths= with RuntimeDirectory=
2017-11-08 15:48:32 +09:00
Lennart Poettering
9672b58398
test: add simple test for validating some of the unit specifiers we support
...
(Also, sort list of test unit files in meson.build alphabetically, to
make future additions more systematic)
2017-10-26 18:01:04 +02:00
Yu Watanabe
038a373651
test-execute: always use /bin/sh
2017-10-12 13:26:39 +09:00
Yu Watanabe
d053b72bdd
test: add test for BindPaths= and BindReadOnlyPaths=
...
Follow-up for a8cabc612b .
2017-10-12 13:25:06 +09:00
Lennart Poettering
8adb3d63e6
test: add test for DynamicUser= + StateDirectory=
...
Also, tests for DynamicUser= should really run for system mode, as we
allocate from a system resource.
(This also increases the test timeout to 2min. If one of our tests
really hangs then waiting for 2min longer doesn't hurt either. The old
2s is really short, given that we run in potentially slow VM
environments for this test. This becomes noticable when the slow "find"
command this adds is triggered)
2017-10-02 17:41:44 +02:00
Lennart Poettering
42cc99d5ec
test: add test case for UnsetEnvironment=
2017-09-14 15:17:40 +02:00
Timothée Ravier
c090d74dd9
test: ensure 'InaccessiblePaths=/proc' option works ( #6017 )
...
Test case for PR #5985 .
2017-05-25 07:47:08 +03:00
Evgeny Vereshchagin
b8d79b4b68
tests: stop creating /TEST ( #5943 )
...
Closes #5856 .
2017-05-11 18:56:39 -04:00