Frantisek Sumsal
cbd20ab41b
test: add a couple of tests for nspawn config files
2023-05-18 16:50:24 +02:00
Frantisek Sumsal
28ed232639
test: create nspawn config files when collecting coverage
...
Which bind-mounts the $BUILD_DIR into the container. This whole coverage
thing is getting slightly ridiculous.
Follow-up to 3b2823a749 , but for non-machinectl containers.
2023-05-18 16:50:24 +02:00
Frantisek Sumsal
d5a6ff8c18
test: cover --bind-user=
2023-05-18 16:50:24 +02:00
Frantisek Sumsal
74696ba5ef
test: add a couple of sanity tests for --port=
2023-05-18 16:50:24 +02:00
Frantisek Sumsal
cf260f799f
test: drop "check" from test case names
2023-05-18 16:50:24 +02:00
Frantisek Sumsal
f0193b4b63
test: exercise a couple of error paths in nspawn's OCI code as well
2023-05-18 16:50:24 +02:00
Frantisek Sumsal
a6dac790c8
test: explicitly use bash
...
To avoid unexpected surprised in CIs with different default shell.
2023-05-17 23:22:54 +02:00
Frantisek Sumsal
5656759d06
test: get rid of the busybox stuff
...
It already required a lot of workarounds, since the busybox utilities
often work differently than their "full" counterparts, and putting
the container together using our "tools" is quite simple anyway.
2023-05-17 23:22:54 +02: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
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
Mike Yuan
b5b1351317
test: add tests for UpheldBy= in [Install] section
2023-05-15 15:04:38 +08: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
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
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
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
Daan De Meyer
e57b7020d2
repart: Fix deny list logic
...
Until now, we always excluded the top level directories that were
covered by child partition mount points, regardless of the source
directory and the target directory of the copy files operation.
This means that even if we were populating a XBOOTLDR partition, if
there was an EFI partition in the image, we'd exclude /boot
unconditionally, leading to the XBOOTLDR partition to be empty.
Also, because of the same cause, if we were copying a nested source
directory (e.g. /abc/def) to the root directory in the root
partition, if /abc/def/usr existed and was populated with files and
directories, the root partition would have those files under /usr,
even if a /usr partition was defined.
To fix these issues, instead of unconditionally excluding the top
level partition mount points under <source>, let's make sure that
when we're copying files from any source directory to the root
directory of a root partition, that we exclude the partition mount
point directories under the source directory instead of the top
level ones.
2023-05-10 18:07:47 +02:00
Frantisek Sumsal
33dff897b9
test: merge TEST-11-ISSUE-3166 into TEST-07-PID1
2023-05-10 14:29:38 +02:00
Frantisek Sumsal
a8faac7dae
test: merge TEST-10-ISSUE-2467 with TEST-07-PID1
2023-05-10 14:29:38 +02:00
Frantisek Sumsal
4966a31ba3
test: merge TEST-09-ISSUE-2691 into TEST-07-PID1
2023-05-10 14:29:38 +02:00