1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-21 14:50:12 +03:00

11 Commits

Author SHA1 Message Date
Frantisek Sumsal
3b21fe1894 test: "modernize" TEST-55-OOMD's init
(cherry picked from commit 7e2bf4c5ee871f797c853d8b6474d4d379dad8e2)
(cherry picked from commit 6cd6d89469da4340aae8b51600df8027186c49c5)
(cherry picked from commit 03efc2b9295f71f6b6e7fc894787f9206119ec89)
2024-02-28 10:29:35 +00:00
Frantisek Sumsal
eb09475e71 test: use btrfs' mkswapfile on btrfs
So it's created automagically with proper attributes.

(cherry picked from commit 1b0cf0366814f3ec103d669ed151bc5b3a144563)
(cherry picked from commit 06cdc05ba2b1a38f1efd2f4a8a3a2e3a750d81fb)
(cherry picked from commit 92ab5322f86414a9125e831bb71cf2a75c6e8a8a)
2024-02-28 10:29:35 +00:00
Luca Boccassi
39459a5d80 TEST-55-OOMD: use swap file instead of partition
The partition seems not to work on Ubuntu for some reason, use a
swap file instead

(cherry picked from commit f434f182ccfd17a214e4b07cec033318e6c4f7b2)
2023-07-07 19:30:52 +01:00
Luca Boccassi
9654140f34 TEST-55-OOMD: use 'stress' to create high pressure
The test fails on my machine, running Debian stable, because
testsuite-55-testbloat.service just swaps and never goes over the
limit, so it's not killed. Use 'stress' instead which seems to be
able to overwhelm the swap too.

(cherry picked from commit 937e82cb7d82dbdbd287d82f4708f15d6032eb9f)
2023-07-07 19:30:52 +01:00
Luca Boccassi
020b2e41ea core: ensure init.scope is realized after drop-ins have been loaded
If we add a drop-in for init.scope (e.g.: to set some memory limit),
it will be loaded long after the cgroup has already been realized.
Do it again when creating the special unit.
2023-01-23 21:40:54 +01:00
Zbigniew Jędrzejewski-Szmek
7b3cec95db tests: add spdx headers to scripts and Makefiles 2021-10-18 09:04:45 +02:00
Frantisek Sumsal
39e1753673 test: rename dracut_install to image_install
The `dracut_install` is a misnomer, since the systemd integration test
suite is based on the original dracut's test suite, and not all the
references to dracut has been edited out. Let's fix that.
2021-09-08 22:41:20 +09:00
Zbigniew Jędrzejewski-Szmek
7bf20e48bd test: move the logic to support /skipped into shared logic
The logic to query test state was rather complex. I don't quite grok the point
of ret=$((ret+1))… But afaics, the precise result was always ignored by the
caller anyway.
2021-04-23 15:12:35 +02:00
Frantisek Sumsal
6f47e45c67 test: configure swap for TEST-55-OOMD
oomd works way better with swap, so let's make the test less flaky by
configuring a swap device for it. This also allows us to drop the ugly
`cat`s from the load-generating script.
2021-04-23 14:36:14 +02:00
Frantisek Sumsal
3f161ba9bc test: make the test entrypoint scripts shellcheck-compliant 2021-04-20 10:26:43 +02:00
Yu Watanabe
1ebcf47296 test: merge udev tests 2021-03-05 18:36:04 +09:00