summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* meson: Use fs module in more placesJan Janssen2023-06-142-5/+3
|
* test: re-enable TEST-02 on ppc64leFrantisek Sumsal2023-06-131-0/+0
|
* test: make sure ping works for unprivileged usersFrantisek Sumsal2023-06-131-1/+6
|
* test: copy file xattrs (if any) as wellFrantisek Sumsal2023-06-131-1/+1
|
* test: merge TEST-61-UNITTESTS-QEMU with TEST-02-UNITTESTSFrantisek Sumsal2023-06-137-53/+20
| | | | | | | | | | 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
* proc-cmdline: parse the whole /proc/cmdlineFrantisek Sumsal2023-06-132-0/+9
| | | | | | 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().
* test: make coverage runs happy againFrantisek Sumsal2023-06-111-0/+1
|
* test-execute: add unit tests for *DirectorySymlink=Luca Boccassi2023-06-091-2/+11
|
* Merge pull request #26059 from DaanDeMeyer/cred-globLuca Boccassi2023-06-081-0/+15
|\ | | | | creds: Add ImportCredential=
| * creds: Add ImportCredential=Daan De Meyer2023-06-081-0/+15
| | | | | | | | | | | | 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.
* | Merge pull request #27958 from mrc0mmand/test-functions-tweaksLuca Boccassi2023-06-072-4/+3
|\ \ | |/ |/| test: a couple of assorted test-functions tweaks
| * test: wrap agetty & getfacl when running with sanitizersFrantisek Sumsal2023-06-071-1/+1
| | | | | | | | The list is getting slightly ridiculous.
| * test: drop $SKIP_INITRDFrantisek Sumsal2023-06-072-3/+1
| | | | | | | | | | 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.
| * test: rebuild the ldconfig cache after changing its configurationFrantisek Sumsal2023-06-071-0/+1
| | | | | | | | Follow-up to ba79e8c2cc.
* | units: change TimeoutSec=0 to TimeoutSec=infinityLennart Poettering2023-06-061-1/+1
| | | | | | | | | | | | | | Follow-up for #27936 Let's also update a bunch of static unit files, matching what we just did for the generators.
* | generators: change TimeoutSec=0 to TimeoutSec=infinityLennart Poettering2023-06-069-9/+9
|/ | | | | | | | | | | | | | | 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
* Merge pull request #27933 from mrc0mmand/selinuxFrantisek Sumsal2023-06-065-26/+16
|\ | | | | test: a couple of TEST-06-SELINUX tweaks
| * test: a couple of assorted cleanupsFrantisek Sumsal2023-06-053-4/+4
| | | | | | | | | | - sort binaries - send stdout/stderr of the autorelabel service to console as well
| * test: load the SELinux module outside of the VMFrantisek Sumsal2023-06-053-22/+2
| | | | | | | | | | | | | | | | 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 reasoning why we don't use the SELinux-provided unitsFrantisek Sumsal2023-06-051-1/+11
| |
* | tests: fix shellcheck warningsLuca Boccassi2023-06-062-5/+5
| |
* | Merge pull request #27912 from mrc0mmand/cryptsetup-testsYu Watanabe2023-06-0511-75/+320
|\ \ | | | | | | test: add a couple more tests for systemd-cryptsetup
| * | test: make sure we unmount /var late during shutdownFrantisek Sumsal2023-06-051-1/+7
| | | | | | | | | | | | To avoid the "mountpoint is busy" error.
| * | test: add a couple more tests for systemd-cryptsetupFrantisek Sumsal2023-06-052-1/+217
| | |
| * | test: make check_result_*() `set -e` friendlyFrantisek Sumsal2023-06-051-4/+2
| | |
| * | test: use check_result_common()Frantisek Sumsal2023-06-051-9/+4
| | | | | | | | | | | | | | | | | | 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.
| * | test: clean up the test cleanup a bitFrantisek Sumsal2023-06-051-2/+3
| | |
| * | test: minor cleanupFrantisek Sumsal2023-06-051-6/+6
| | | | | | | | | | | | No functional change.
| * | test: make the data partition larger for the cryptsetup testFrantisek Sumsal2023-06-051-0/+1
| | | | | | | | | | | | | | | As we use it for /var and with the default 100 MiB there's not enough space for the journal.
| * | test: make the root/data partition size configurable per testFrantisek Sumsal2023-06-052-2/+6
| | |
| * | test: introduce test_require_bin() and use itFrantisek Sumsal2023-06-057-15/+17
| | | | | | | | | | | | No functional change.
| * | test: fix indentationFrantisek Sumsal2023-06-051-7/+7
| | |
| * | test: move TPM2-related setup stuff into test-functionsFrantisek Sumsal2023-06-052-27/+49
| |/ | | | | | | And hide it all behind $TEST_SETUP_SWTPM.
* | Merge pull request #27926 from DaanDeMeyer/repart-offlineLuca Boccassi2023-06-051-139/+156
|\ \ | | | | | | repart: Add --offline argument
| * | test: Test --offline= in TEST-58-REPARTDaan De Meyer2023-06-051-139/+156
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #27871 from yuwata/udevadm-verify-downgrade-style-issuesZbigniew Jędrzejewski-Szmek2023-06-051-63/+81
|\ \ \ | | | | | | | | udevadm-verify: downgrade log level about style issues
| * | | udev: downgrade log level about style issuesYu Watanabe2023-06-051-25/+52
| | | | | | | | | | | | | | | | And add --no-style switch that make style issues not critical.
| * | | test: drop unnecessary copy of expected outputYu Watanabe2023-06-051-11/+2
| | | |
| * | | udev-rules: terminate log messages with periodYu Watanabe2023-06-051-30/+30
| | |/ | |/|
* / | test: allow running only specified subtests/testcasesFrantisek Sumsal2023-06-053-0/+21
|/ / | | | | | | | | | | | | | | Useful when debugging, e.g.: make -C test/TEST-74-AUX-UTILS clean setup run TEST_MATCH_SUBTEST=run Resolves: #27914
* | test: drop the --recursive=no testFrantisek Sumsal2023-06-031-1/+0
| | | | | | | | | | As the outcome also depends on availability of the PID namespace, so the test might (and does) unexpectedly pass in some environments.
* | test: ignore missing coverage in TEST-82-SOFTREBOOTFrantisek Sumsal2023-06-031-0/+2
|/ | | | As we temporarily mount rootfs read-only there.
* sysupdate.d: Add way to drop binaries into $BOOTAdrian Vovk2023-06-031-3/+40
| | | | | | | | | | 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
* Merge pull request #27903 from mrc0mmand/test-followupsLuca Boccassi2023-06-033-10/+44
|\ | | | | test: a couple of systemd-{coredump,pstore,run} followups
| * test: probe a couple more paths in systemd-runFrantisek Sumsal2023-06-021-9/+22
| |
| * test: sync with the fake binary before killing itFrantisek Sumsal2023-06-021-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 -
| * test: clean up our mess after the pstore testFrantisek Sumsal2023-06-021-0/+11
| |
* | test: add integration test for soft reboots incl. fdstore passingLennart Poettering2023-06-024-0/+180
| |
* | test: disable SoftReboot() in dfuzzer test for nowLennart Poettering2023-06-021-0/+1
|/ | | | | | As requested: https://github.com/systemd/systemd/pull/27435#issuecomment-1527810336
* test: add a couple of tests for systemd-runFrantisek Sumsal2023-06-012-1/+201
|