Zbigniew Jędrzejewski-Szmek
048d52d51e
test: move TEST-31-DEVICE-ENUMERATION setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
7eeeab205d
test: move TEST-30-ONCLOCKCHANGE setup to static files
...
The two timezone files are now installed in the global setup. I am not too
happy about this, but it still seems better than to create a completely
separate image just for this.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e578ea4df4
test: move TEST-29-UDEV-ID_RENAMING setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
94370e627f
test: move TEST-28-PERCENTJ-WANTEDBY setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
468874997a
test: move TEST-27-STDOUTFILE setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
dfa633ca6a
test: move TEST-26-SETENV setup to static files
...
Also run mask_supporting_services() here.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
68e2dc0f91
test/TEST-25: remove all images at the end of the test
...
scratch5 would be left behind, and trying to run the test again on the same
image would fail.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
6e796683df
test: move TEST-25-IMPORT setup to static files
...
Also run mask_supporting_services() here.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
f4c40fd754
test: move TEST-24-UNIT-TESTS setup to static files
...
I picked the list of zone files to install by grepping through the code. This
is is a bit brittle, but installing all of them takes a while, and more
importantly, writes a lot of lines to the log.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
b49325d028
test: move TEST-23-TYPE-EXEC setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
c0b97b0fc8
test: move TEST-22-TMPFILES setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
c1d6c135bc
test: move TEST-20-MAINPIDGAMES setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e67a2644a8
test: move TEST-19-DELEGATE setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
dce2b8ce48
test: move TEST-18-FAILUREACTION setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
9911131a60
test: move TEST-17-WANTS setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e5b0aaaf56
test/TEST-16: simplify how variables are set
...
The amount of lines doesn't change much, but I think it's much more
straightforward this way.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
2b5981b40a
test: move TEST-16-EXTEND-TIMEOUT setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
1aa0f38491
test/TEST-15: call daemon-reload in two more places
...
Sometimes the test would fail there, nondeterministically. I'm not sure why,
but relying on PID1 not caching the file is clearly very brittle. Let's instead
call daemon-reload.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
4e2ac45a83
test/TEST-15: remove all created unit files
...
We would miss anything created under a template instance.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
2c7519c036
test: move TEST-15-DROPIN setup to static files
...
Unfortunately the services needed to be renamed because of conflicts with other
services that exist in the shared dir.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
afd9c55dcc
test: move most of TEST-14-MACHINE-ID setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e5badaf335
test: move most of TEST-13-NSPAWN-SMOKE setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
d10029bba4
test: move TEST-12-ISSUE-3171 setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
3ac189d8aa
test: move TEST-11-ISSUE-3166 setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
8c6d58f65d
test: move TEST-10-ISSUE-2467 setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
4110a6deb9
test: use shell arrays and remove duplicates
...
The tool lists are obviously not empty, so let's remove the test if they are.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
e88302002f
test: move TEST-09-ISSUE-2691 setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
c84752398b
test: move TEST-08-ISSUE-2730 setup to static files and meson scripts
...
Unfortunately meson does not install symlinks, but copies the symlink
destination instead. So symlinks need to be created by a script.
This commit adds both symlinks in test/testsuite-08.units/ and meson
scriptlet calls. Strictly speaking, the first is not necessary, since nothing
reads stuff directly from the source tree.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
58a1bdb467
test: move TEST-07-ISSUE-1981 setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
4caa1ac794
test/TEST-06: make autorelabel.service a static file too
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
1c76b5b5bb
test/TEST-06: skip test if no selinux
...
I put SELINUX=disabled on my laptop, and the test fails with ENOENT when trying
to write to /sys/fs/selinux/enforce. It's a bit of a special case, but let's
avoid the failure.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
1ed5556e56
test: move most of TEST-06-* setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
ed024e1d98
test: move TEST-05-RLIMITS setup to static files
...
The test currently fails in the check for LimitNOFILESoft/LimitNOFILE. I see
default values there. This doesn't seem to be related to the changes in the
test suite, but rather to the recent changes to pid1.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
9901a6ad2e
test: convert TEST-04-JOURNAL to generic image
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
41b1b2a563
test: move TEST-03-JOBS setup to static files
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
5964e39a69
test: move part of TEST-02-CRYPTSETUP setup to static files
...
Since we create an encrypted partition for this test, let's create a separate image here.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
fe85f2bb9c
test: move TEST-01-BASIC setup to static files
...
After this commit, only tests that were converted will work, because the
interface to test_run() changed.
2020-03-28 11:46:47 +01:00
Zbigniew Jędrzejewski-Szmek
5f28f3ddaf
test: allow overriding EFI_MOUNT like other variables
2020-03-22 10:22:42 +01:00
Zbigniew Jędrzejewski-Szmek
80769cb66c
meson: use install_subdir() to install files
...
This gives us slightly less control, but we don't need to update the
file list...
2020-03-22 10:22:42 +01:00
Zbigniew Jędrzejewski-Szmek
f55198f034
test: replace symlinks with actual unit files
...
During installation, meson complains:
> Installing /home/zbyszek/src/systemd-work/test/units/sysinit.target to /var/tmp/systemd-test.Q1FSuj/root/usr/lib/systemd/tests/testdata/units
> Warning: trying to copy a symlink that points to a file. This will copy the file,
> but this will be changed in a future version of Meson to copy the symlink as is. Please update your
> build definitions so that it will not break when the change happens.
It *is* convenient to have those files as symlinks, but it is also confusing,
because symlinks create aliases, and it seems that in those cases we actually
don't want aliases (at least in the case of loopy*.service that'd make the test
pointless).
2020-03-22 10:22:42 +01:00
Zbigniew Jędrzejewski-Szmek
7b43295346
tests: move unit files to units/ subdirectory
...
We have a bazillion of those unit files, and keeping them all directly in tests/
has become rather unwieldy.
2020-03-19 16:23:27 +01:00
Zbigniew Jędrzejewski-Szmek
8c357762c7
Merge pull request #14749 from msekletar/cpu-aff-numa-v3
...
core: add support for setting CPUAffinity= to special "numa" value
2020-03-18 13:35:58 +01:00
Zbigniew Jędrzejewski-Szmek
34bc838f15
Merge pull request #15136 from yuwata/network-dhcp4-use-gateway
...
network: add a flag to ignore gateway provided by DHCP server
2020-03-17 16:51:18 +01:00
Yu Watanabe
74f0fb9095
network: can: add support for listen-only mode
...
Closes #15129 .
2020-03-17 00:32:35 +09:00
Yu Watanabe
0d7bd445d2
test-network: add a test case for DHCPv4.UseGateway=no
2020-03-16 19:34:47 +09:00
Yu Watanabe
b453122789
network: add a flag to ignore gateway provided by DHCP server
...
Closes #15117 .
2020-03-16 19:34:43 +09:00
Michal Sekletár
e2b2fb7f56
core: add support for setting CPUAffinity= to special "numa" value
...
systemd will automatically derive CPU affinity mask from NUMA node
mask.
Fixes #13248
2020-03-16 08:57:28 +01:00
Frantisek Sumsal
197298ff9f
test: wait a bit after starting the test service
...
otherwise we might end up being faster than the unit itself, causing
unexpected fails, like:
```
testsuite.sh[297]: + systemctl start issue_14566_test
testsuite.sh[297]: + systemctl status issue_14566_test
testsuite.sh[304]: ● issue_14566_test.service - Issue 14566 Repro
testsuite.sh[304]: Loaded: loaded (/etc/systemd/system/issue_14566_test.service; static; vendor preset: enabled)
testsuite.sh[304]: Active: active (running) since Sat 2020-03-14 02:02:23 UTC; 417ms ago
testsuite.sh[304]: Main PID: 301 ((repro.sh))
testsuite.sh[304]: Tasks: 1 (limit: 535)
testsuite.sh[304]: Memory: 180.0K
testsuite.sh[304]: CPU: 122ms
testsuite.sh[304]: CGroup: /system.slice/issue_14566_test.service
testsuite.sh[304]: └─301 [(repro.sh)]
testsuite.sh[307]: ++ cat /leakedtestpid
testsuite.sh[307]: cat: /leakedtestpid: No such file or directory
testsuite.sh[297]: + leaked_pid=
```
2020-03-16 12:28:14 +09:00
Yu Watanabe
970ab1fcc0
test-network: add a test case for HHF
2020-03-12 15:47:03 +09:00
Susant Sahani
7f22402007
network: TC - introduce HHF
...
Please see https://lwn.net/Articles/577208/
2020-03-12 15:39:12 +09:00