Zbigniew Jędrzejewski-Szmek
e2e736cbbd
fuzz: rename long samples
...
With those long filenames, output doesn't fit on the terminal.
2023-05-18 15:23:27 +02:00
Frantisek Sumsal
c01f0184b9
test: mangle the machine ID only for the QEMU test part
...
systemd-nspawn doesn't like invalid machine IDs and refuses to boot with one:
TEST-74-AUX-UTILS RUN: Tests for auxiliary utilities
...
Spawning container TEST-74-AUX-UTILS--3 on /var/tmp/systemd-test-TEST-74-AUX-UTILS_3/root.
Press Ctrl-] three times within 1s to kill container.
Failed to read machine ID from container image: Structure needs cleaning
E: nspawn failed with exit code 1
Follow-up to b4d42a82eb .
2023-05-17 15:10:22 +01:00
Frantisek Sumsal
7c6fa5bf16
test: move runas() to the shared utility library
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
e71bac7222
test: make shellcheck happy again
...
No functional changes.
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
16eb568766
test: merge TEST-48-START-STOP-NO-RELOAD into TEST-23-UNIT-FILE
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
518c3e2722
test: merge TEST-49-RUNTIME-BIND-PATHS into TEST-23-UNIT-FILE
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
ab1b2f22fd
test: clean up test artifacts
...
So we don't run into unexpected fails when two tests use the same paths.
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
23cb7362f1
test: merge TEST-28-PERCENTJ-WANTEDBY into TEST-23-UNIT-FILE
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
fb03fea2a2
test: merge TEST-56-EXIT-TYPE into TEST-19-CGROUP
...
And clean it up a bit.
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
3999ea001a
test: rename TEST-19-DELEGATE to TEST-19-CGROUP
...
And clean it up a bit.
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
5ff1c6fcde
test: introduce get_cgroup_hierarchy()
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
cb153b4fe9
test: rename assert.sh to util.sh
...
So we can extend it with additional utility functions without making it
confusing.
No functional change.
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
1fd24da616
test: merge TEST-33-CLEAN-UNIT into TEST-23-UNIT-FILE
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
9245eb3cbd
test: merge TEST-27-STDOUTFILE into TEST-23-UNIT-FILE
2023-05-16 21:49:09 +02:00
Frantisek Sumsal
b4d42a82eb
test: merge TEST-14-MACHINE-ID into TEST-74-AUX-UTILS
2023-05-16 21:49:09 +02:00
Yu Watanabe
871a41f0ef
Merge pull request #27606 from YHNdnzj/loginctl-list-show-state
...
loginctl: list-{users,sessions}: add a column for showing state
2023-05-17 01:41:13 +09:00
Yu Watanabe
8c7dd49ad1
Merge pull request #27655 from yuwata/udev-net-assign-alternative-names-only-on-add-event
...
udev/net: assign alternative names only on add event
2023-05-17 01:39:40 +09:00
Frantisek Sumsal
a5a4d5a18e
Merge pull request #27651 from mrc0mmand/more-nspawn-tests
...
nspawn: OCI related fixes & tests
2023-05-16 17:26:25 +02:00
Mike Yuan
0313c41068
Merge pull request #27638 from YHNdnzj/upheldby-unit-file
...
unit-file: support UpheldBy= in [Install] settings (adding Upholds= deps from .upholds/)
2023-05-16 21:53:24 +08:00
Mike Yuan
306ff2e297
test: add test for state in loginctl list-{users,sessions}
2023-05-16 18:09:15 +08:00
Yu Watanabe
40b6b448bd
test: add tests for renaming network interface
2023-05-16 18:28:18 +09:00
Frantisek Sumsal
f00519b5b3
fuzz: update the base JSON for fuzz-nspawn-oci
2023-05-16 11:27:10 +02:00
Frantisek Sumsal
0d5896a949
test: add a couple of tests for nspawn's OCI stuff
2023-05-16 11:27:10 +02:00
Frantisek Sumsal
806b18240a
test: make $BUILD_DIR writable when rootfs is mounted read-only
...
Adjust two systemd-nspawn invocations where rootfs is mounted read-only,
to avoid gcov complaining.
2023-05-15 10:15:24 +02:00
Frantisek Sumsal
786f6d81f7
test: pass $BUILD_DIR as $COVERAGE_BUILD_DIR to the system manager
...
To make additional coverage-related tweaks slightly easier.
2023-05-15 10:06:54 +02:00
Mike Yuan
b5b1351317
test: add tests for UpheldBy= in [Install] section
2023-05-15 15:04:38 +08:00
Frantisek Sumsal
1c8bf49b67
test: update nspawn's basic config file used for fuzzing
2023-05-15 09:00:17 +02:00
Frantisek Sumsal
08d547a481
test: rename TEST-13-NSPAWN-SMOKE to TEST-13-NSPAWN
...
To make it consistent with the rest of the tests.
2023-05-14 19:32:07 +02:00
Frantisek Sumsal
703766408f
test: slightly extend the systemd-nspawn tests
2023-05-14 19:32:07 +02:00
Frantisek Sumsal
8416a15e5c
test: wait after sending a signal if necessary
...
On overloaded systems it might take a bit until the signal is sent,
processed, and the respective file is created.
2023-05-14 19:32:07 +02:00
Frantisek Sumsal
807626d1ce
test: install the overlayfs/loop modules unconditionally
2023-05-14 19:32:07 +02:00
Frantisek Sumsal
9f596939e4
test: create merged-usr containers
2023-05-14 19:32:07 +02:00
Frantisek Sumsal
3b2823a749
test: bind mount the $BUILD_DIR into nspawn containers
...
when collecting coverage. This applies only to containers started
via machinectl (or directly via the systemd-nspawn@.service unit).
2023-05-14 19:32:07 +02:00
Frantisek Sumsal
ceea144ed8
test: use dropins to override system configuration
...
Instead of touching the configuration files directly.
2023-05-14 19:32:07 +02:00
Luca Boccassi
942afbad2a
Merge pull request #27634 from mrc0mmand/TEST-13-shenanigans
...
test: clean up & extend the nspawn/machinectl test suite
2023-05-13 10:23:14 +01:00
Frantisek Sumsal
a1ff1ac273
test: merge machinectl edit/cat tests into TEST-13
2023-05-13 00:26:38 +02:00
Frantisek Sumsal
990b629e12
test: always install the script utility
2023-05-13 00:26:38 +02:00
Frantisek Sumsal
378db9e2b9
test: add a couple of tests for machinectl
2023-05-13 00:26:38 +02:00
Frantisek Sumsal
c2df08b5b8
test: clean up the nspawn tests a bit
2023-05-12 18:05:29 +02:00
Frantisek Sumsal
e8dba80626
core: fix memory leak during deserialization
...
when activation-details-unit-name is encountered multiple times.
Resolves : #27623
2023-05-13 00:42:25 +09:00
Yu Watanabe
82c60c939c
test-network: add tests for static lease matching with chaddr
...
Follow-up for 4646cdaa37 (#27313 ).
2023-05-12 03:07:10 +09:00
Frantisek Sumsal
b0582f6b63
cryptenroll: actually allow using multiple "special" strings when wiping
...
The systemd-cryptenroll man page states:
Takes a comma separated list of numeric slot indexes, or the special
strings ..., or any combination of these strings or numeric
indexes, in which case all slots matching either are wiped.
but we'd allow only one special string at any given time as the value
was not ORed when assigning. So, for example, --wipe=recovery,password
would actually become --wipe=password, etc.
2023-05-11 13:12:08 +01:00
Yu Watanabe
531a6233d1
Merge pull request #27603 from mrc0mmand/more-test-shenanigans
...
test: merge PID1-related tests into TEST-07-PID1
2023-05-11 16:48:13 +09:00
Frantisek Sumsal
15bbc0c107
test: abstract the common test parts into a utility script
...
Also, instead of bailing out on the first failed subtest, always run all
subtests and print a summary at the end (with an appropriate exit code).
2023-05-10 21:26:26 +02:00
Frantisek Sumsal
3a4b86264e
test: merge TEST-20-MAINPIDGAMES into TEST-07-PID1
2023-05-10 21:26:26 +02:00
Frantisek Sumsal
d8d8380a35
test: merge TEST-51-ISSUE-16115 into TEST-07-PID1
2023-05-10 21:26:26 +02:00
Frantisek Sumsal
11562ee585
test: merge TEST-47-ISSUE-14566 into TEST-07-PID1
2023-05-10 21:26:26 +02:00
Frantisek Sumsal
8412cdf4fd
test: move TEST-23's units into a dedicated subfolder
...
To remain consistent with other tests.
2023-05-10 21:26:26 +02:00
Frantisek Sumsal
51b6dbf75a
test: merge TEST-12-ISSUE-3171 into TEST-07-PID1
2023-05-10 21:26:26 +02:00
Daan De Meyer
1fd5ec5697
tmpfiles: Add merge support for copy files action
...
If '+' is specified with 'C', let's merge the tree with any existing
tree.
2023-05-10 18:08:07 +02:00