| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The test was originally introduced for Ubuntu CI, as it uses
PREFER_NSPAWN=1, but it was subsequently disabled two years ago [0], so
it was pretty much useless. Let's merge it into TEST-02 and tweak it a
bit to run only certain tests under QEMU when $TEST_PREFER_NSPAWN is
set.
[0] b152adbfa9b708dade8559b9962241902bf2eb7c
|
|
|
|
|
|
| |
The kernel command line may contain newlines which kernel happily
accepts, but we'd ignore everything past the first newline. Let's fix
that by replacing read_one_line_file() with read_full_file().
|
| |
|
| |
|
|\
| |
| | |
creds: Add ImportCredential=
|
| |
| |
| |
| |
| |
| | |
ImportCredential= takes a credential name and searches for a matching
credential in all the credential stores we know about it. It supports
globs which are expanded so that all matching credentials are loaded.
|
|\ \
| |/
|/| |
test: a couple of assorted test-functions tweaks
|
| |
| |
| |
| | |
The list is getting slightly ridiculous.
|
| |
| |
| |
| |
| | |
It's pointless nowadays, since we always need an initrd for the test VMs
as we require modules that are usually not compiled in the kernel.
|
| |
| |
| |
| | |
Follow-up to ba79e8c2cc.
|
| |
| |
| |
| |
| |
| |
| | |
Follow-up for #27936
Let's also update a bunch of static unit files, matching what we just
did for the generators.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With these settings we intend to turn off timeouts for possibly
interactive/slow commands. The officially documented way to turn off the
time-outs is to setting them to infinity. So far we set them to zero
here though.
This lead to some confusiong, for example #18224. Let's fix this by
uniformly spelling out TimeoutSec=infinity.
This doesn't change behaviour. It just makes our generated files match
what we document, without relying on historic compat support.
Fixes: #18224
|
|\
| |
| | |
test: a couple of TEST-06-SELINUX tweaks
|
| |
| |
| |
| |
| | |
- sort binaries
- send stdout/stderr of the autorelabel service to console as well
|
| |
| |
| |
| |
| |
| |
| |
| | |
Turns out we can, apart from just building the module, "shove" it into
the SELinux database in a chroot as well. This brings quite significant
time savings, as the SELinux db rebuild takes 2 - 5 minutes in a VM
without acceleration (and takes currently ~half of the runtime of the test
in the C8S job).
|
| | |
|
| | |
|
|\ \
| | |
| | | |
test: add a couple more tests for systemd-cryptsetup
|
| | |
| | |
| | |
| | | |
To avoid the "mountpoint is busy" error.
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
The TEST-24 has been silently timing out for quite a while in the C8S
job, as the check_result_qemu() override lacked some error checks,
whoopsie.
|
| | | |
|
| | |
| | |
| | |
| | | |
No functional change.
|
| | |
| | |
| | |
| | |
| | | |
As we use it for /var and with the default 100 MiB there's not enough
space for the journal.
|
| | | |
|
| | |
| | |
| | |
| | | |
No functional change.
|
| | | |
|
| |/
| |
| |
| | |
And hide it all behind $TEST_SETUP_SWTPM.
|
|\ \
| | |
| | | |
repart: Add --offline argument
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of using a privileged and unprivileged user to test the
offline and online logic of systemd-repart, let's always run repart
as root and use the --offline= argument to specify repart to use
either the offline or online logic.
|
|\ \ \
| | | |
| | | | |
udevadm-verify: downgrade log level about style issues
|
| | | |
| | | |
| | | |
| | | | |
And add --no-style switch that make style issues not critical.
|
| | | | |
|
| | |/
| |/| |
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
Useful when debugging, e.g.:
make -C test/TEST-74-AUX-UTILS clean setup run TEST_MATCH_SUBTEST=run
Resolves: #27914
|
| |
| |
| |
| |
| | |
As the outcome also depends on availability of the PID namespace, so
the test might (and does) unexpectedly pass in some environments.
|
|/
|
|
| |
As we temporarily mount rootfs read-only there.
|
|
|
|
|
|
|
|
|
|
| |
As described in the BLS, we should place binaries into the XBOOTLDR
directory if it is available, otherwise into the ESP. Thus, we might
need to put binaries into /boot or into /efi depending on the existence
of the XBOOTLDR partition.
With this change, we introduce a new PathRelativeTo= config option that
makes this functionality possible
|
|\
| |
| | |
test: a couple of systemd-{coredump,pstore,run} followups
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
On faster machines we might be too fast and kill the fake binary during
fork() which then makes kernel report a "wrong" binary in the coredump,
e.g.:
[ 31.408078] testsuite-74.sh[548]: + /tmp/make-dump /tmp/test-dump SIGTRAP
[ 31.409720] testsuite-74.sh[560]: + bin=/tmp/test-dump
[ 31.409720] testsuite-74.sh[560]: + sig=SIGTRAP
[ 31.409720] testsuite-74.sh[560]: + ulimit -c unlimited
[ 31.409720] testsuite-74.sh[560]: + pid=561
[ 31.409720] testsuite-74.sh[560]: + sleep 1
[ 31.409720] testsuite-74.sh[560]: + kill -s SIGTRAP 561
[ 31.409720] testsuite-74.sh[560]: + wait 561
[ 31.491757] systemd[1]: Created slice system-systemd\x2dcoredump.slice.
[ 31.524488] systemd[1]: Started systemd-coredump@0-563-0.service.
[ 31.616372] systemd-coredump[564]: [🡕] Process 561 (make-dump) of user 0 dumped core.
Stack trace of thread 561:
#0 0x00007ff86bb49af7 _Fork (libc.so.6 + 0xd4af7)
#1 0x00007ff86bb4965f __libc_fork (libc.so.6 + 0xd465f)
#2 0x000055e88011b0ad make_child (bash + 0x550ad)
#3 0x000055e8800fd05f n/a (bash + 0x3705f)
#4 0x000055e880100116 execute_command_internal (bash + 0x3a116)
#5 0x000055e8801011f2 execute_command_internal (bash + 0x3b1f2)
#6 0x000055e8801025b6 execute_command (bash + 0x3c5b6)
#7 0x000055e8800f134b reader_loop (bash + 0x2b34b)
#8 0x000055e8800e757d main (bash + 0x2157d)
#9 0x00007ff86ba98850 n/a (libc.so.6 + 0x23850)
#10 0x00007ff86ba9890a __libc_start_main (libc.so.6 + 0x2390a)
#11 0x000055e8800e83b5 _start (bash + 0x223b5)
ELF object binary architecture: AMD x86-64
[ 31.666617] testsuite-74.sh[560]: /tmp/make-dump: line 12: 561 Trace/breakpoint trap (core dumped) "$bin" infinity
...
$ coredumpctl list --file system.journal
TIME PID UID GID SIG COREFILE EXE SIZE
Fri 2023-06-02 10:42:10 CEST 561 0 0 SIGTRAP journal /usr/bin/bash -
Fri 2023-06-02 10:42:11 CEST 570 0 0 SIGABRT journal /tmp/test-dump -
Fri 2023-06-02 10:42:12 CEST 582 0 0 SIGTRAP missing /tmp/test-dump -
Fri 2023-06-02 10:42:13 CEST 593 0 0 SIGABRT missing /tmp/test-dump -
|
| | |
|
| | |
|
|/
|
|
|
|
| |
As requested:
https://github.com/systemd/systemd/pull/27435#issuecomment-1527810336
|
| |
|