summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #31790 from poettering/pcrlock-policy-fixLennart Poettering2024-04-181-2/+6
|\ \ | | | | | | Replace PolicyAuthValue by PolicySigned as access policy for pcrlock policy nvindex
| * | ci: update tests to showcase new option a bitLennart Poettering2024-04-181-2/+6
| |/
* | Merge pull request #32121 from CodethinkLabs/basic-mkosi-integration-testsLuca Boccassi2024-04-184-0/+204
|\ \ | | | | | | Basic mkosi integration tests
| * | test: Add mkosi-based integration test runnerRichard Maw2024-04-184-0/+204
| |/ | | | | | | | | The first two tests are included to ensure parallel test execution is demonstrable.
* / portablectl: add --clean parameter for detachingLuca Boccassi2024-04-181-1/+5
|/ | | | | Calls CleanUnit on each portable service being removed, after it has stopped
* test: fix typoYu Watanabe2024-04-171-2/+2
| | | | Follow-up for 236634c82c56e280348f9452129f3cdfd1fb7a45.
* Merge pull request #32300 from mrc0mmand/assorted-tweaksYu Watanabe2024-04-175-1921/+1704
|\ | | | | test: split TEST-50-DISSECT into smaller parts
| * test: rework systemd-sysext testFrantisek Sumsal2024-04-161-931/+506
| | | | | | | | | | | | | | | | | | | | Let's rework the test a bit, namely: - condense the code a bit - drop unnecessary braces around variables - drop unnecessary explanations around `touch` calls - drop/rename functions to make the code more self-explanatory - simplify cleanup a bit - create R/O bind mounts directly (supported since util-linux 2.27)
| * test: simplify unit checkFrantisek Sumsal2024-04-161-6/+2
| |
| * test: split some overly long linesFrantisek Sumsal2024-04-163-62/+256
| | | | | | | | | | Let's get the line count back up again by splitting some overly long lines in hopes to make the code slightly more readable.
| * test: split TEST-50-DISSECT into smaller partsFrantisek Sumsal2024-04-165-1921/+1939
| | | | | | | | As the current version has almost 2k lines.
* | test-64-udev-storage: partition disk inside testcase - ↵Sam Leonard2024-04-162-11/+11
| | | | | | | | testcase_multipath_basic_failover
* | test-64-udev-storage: partition disk inside testcase - ↵Sam Leonard2024-04-162-14/+16
| | | | | | | | testcase_virtio_scsi_identically_named_partitions
* | test-64-udev-storage: partition disk inside testcase - testcase_long_sysfs_pathSam Leonard2024-04-163-12/+13
| |
* | Merge pull request #32294 from yuwata/network-generator-credsYu Watanabe2024-04-161-1/+11
|\ \ | | | | | | network-generator: also load drop-ins for networkd.conf from credentials
| * | test: add test case for network.conf.* credentialYu Watanabe2024-04-161-1/+11
| | |
* | | test: add test case for 'networkctl cat' without argumentsYu Watanabe2024-04-161-0/+11
|/ /
* | test: add test for systemd-udev-load-credentials.serviceYu Watanabe2024-04-162-0/+34
| |
* | udevadm-control: check if control command really specifiedYu Watanabe2024-04-161-2/+1
| | | | | | | | | | | | Previously, 'udevadm control' only checked the number of the arguments. So, if only `--timeout` is specified, it spuriously did nothing and succeeded. This makes the command request at least one control command.
* | Merge pull request #32258 from yuwata/network-tc-fix-stack-overflowLuca Boccassi2024-04-151-0/+17
|\ \ | |/ |/| network/tc: fix stack overflow
| * test-network: add test for stack overflow in qdisc_drop() and tclass_drop()Yu Watanabe2024-04-131-0/+17
| |
* | Merge pull request #32194 from henryli001/lihl/add-defaultUseDomains-configYu Watanabe2024-04-141-0/+44
|\ \ | |/ |/| network: add mechanism to configure default UseDomains= setting
| * network: add mechanism to configure default UseDomains= setting, update man ↵Henry Li2024-04-141-0/+44
| | | | | | | | page and add test
* | test: add instructions on how to run Coverity locallyFrantisek Sumsal2024-04-121-0/+45
| | | | | | | | | | | | | | This requires a Coverity license, so the usefulness of the instructions is somewhat limited, but at least I won't have to re-discover everything from scratch when I need to debug something Coverity-related again in the future.
* | network/ndisc: fix verification of sender of Redirect messageYu Watanabe2024-04-111-10/+14
| | | | | | | | | | | | | | | | | | | | The sender must be the first-hop router of the destination. Previously, we only accepted Redirect messages whose sender is the current default router with the highest priority. See RFC 4861 section 8.1 for more details. Fixes #31981.
* | network/ndisc: do not set per-route MTU and hop limitYu Watanabe2024-04-111-12/+9
| | | | | | | | | | | | | | | | | | | | | | Setting MTU announced in RA message to routes is problematic, as the value may be larger than the device MTU (IFLA_MTU), and in such case the route cannot be used. These two properties are now set per-interface, and gracefully handled such invalid cases. Hence not necessary to set them to each route. Follow-up for #32195.
* | test: make sd-journal-gatewayd tests even more debug-ableFrantisek Sumsal2024-04-111-45/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately bfd30e8af6 is not enough and the test fails, that still occasionally occur, don't provide enough information to see what's wrong. Let's rework the test a little to improve this, namely: - redirect curl's output into a temporary file instead of piping it directly into the "check" expression; that way we can simply dump the temporary file when the test fails, providing potentially crucial information. We don't want to always dump everything to stdout, as some of the tests request an entire system journal (note that shell redirection instead of `curl -o file` is used intentionally, so the output file is always nuked first) - by dropping the pipes in curl commands we can re-enable pipefail - also, split some very long commands to multiple lines to (slightly) improve readability Follow-up for bfd30e8af64a0d39ad110258dca69be919f6df34.
* | test: make the output of TEST-69 less painful to readFrantisek Sumsal2024-04-113-4/+2
| | | | | | | | | | | | | | | | | | | | The logs from TEST-69 still contain a lot of unnecessary shell metacharacters, so to make the output more readable let's just set TERM=dumb, instead of having to strip everything semi-manually. Also, move the related --background= tweak to TEST-69, since it's relevant only for that particular test. Follow-up for 8d4bfd38ed941aa8003d7007145eccc01f52a5f6.
* | Merge pull request #32181 from YHNdnzj/open-fileLuca Boccassi2024-04-1110-95/+72
|\ \ | | | | | | Some fixes/improvements for OpenFile=
| * | test: merge TEST-77-OPENFILE into TEST-23-UNIT-FILEMike Yuan2024-04-1010-95/+72
| |/ | | | | | | And add coverage for #32179
* | Merge pull request #32195 from yuwata/network-ndisc-mtuLuca Boccassi2024-04-112-0/+48
|\ \ | | | | | | network: several cleanups for IPv6 MTU
| * | test-network: add test case for ndisc MTU optionYu Watanabe2024-04-102-0/+48
| | |
* | | Merge pull request #32166 from yuwata/network-rfc7217-dadLuca Boccassi2024-04-102-5/+44
|\ \ \ | |_|/ |/| | network: generate another address on conflict
| * | test-network: add test case for regenerating prefix stable address on conflictYu Watanabe2024-04-092-5/+44
| |/ | | | | | | For issue #31605.
* | test: wait until the test container is fully booted upFrantisek Sumsal2024-04-091-0/+4
| | | | | | | | | | TEST-69 still occasionally times out in CI and appears to be stuck on boot, so let's see if this helps the situation a bit.
* | test: disable background color for nspawn containersFrantisek Sumsal2024-04-091-0/+1
| | | | | | | | As it makes the logs really messy in certain tests.
* | test: set pexpect's logfile earlyFrantisek Sumsal2024-04-091-7/+8
| | | | | | | | So we capture the container's boot as well.
* | test: give sd-resolved enough time to timeoutFrantisek Sumsal2024-04-091-2/+5
| | | | | | | | | | | | | | | | | | The timeout on sd-resolved's side is 5-10s (UDP or TCP), but dig's default timeout is 5s. Let's give sd-resolved enough time to timeout before either giving up or checking if it served stale data on dig's side. Resolves: #31639
* | test: let curl show a potential error in silent modeFrantisek Sumsal2024-04-091-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | I collected a couple of fails in this particular test, but without any output they're impossible to debug. Let's make this slightly less annoying and let curl show an error (if any) even in silent mode. This patch uncovers that curl has been (silently) complaining about not being able to write to the output destination, because `grep -q` short-circuits on the first match and doesn't bother reading the rest, so replace `grep -q` with `grep ... >/dev/null` to force grep to always read the whole thing from curl.
* | test: forward journal to console in TEST-24-CRYPTSETUPFrantisek Sumsal2024-04-091-0/+3
|/ | | | | | If we fail to mount the encrypted /var during boot we're left with nothing to debug, so let's do the same thing we do for TEST-08-INITRD and forward journal to the console.
* Merge pull request #32104 from yuwata/network-ndisc-redirectLuca Boccassi2024-04-081-0/+48
|\ | | | | network/ndisc: add support for Redirect message
| * test-network: add test cases for Redirect and Neighbor Advertisement message ↵Yu Watanabe2024-04-041-0/+48
| | | | | | | | handling
* | test-execute: check for s390x first and duplicate testLuca Boccassi2024-04-081-0/+8
| | | | | | | | | | | | s390x will define both s390x and s390, so exec-personality-s390.service is ran in both cases but fails on s390x, as the personality returned is s390x. Split the test and check specifically for s390x.
* | test: add integration test for unpriv mountfsd/nsresourcedLennart Poettering2024-04-063-0/+71
| |
* | Merge pull request #31131 from poettering/dlopen-kmodLuca Boccassi2024-04-061-1/+1
|\ \ | | | | | | turn libkmod into a dlopen() dependency, too
| * | libkmod: turn into dlopen() dependencyLennart Poettering2024-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As it turns out libkmod has quite a bunch of deps, including various compressing libs and similar. By turning this into a dlopen() dependency, we can make our depchain during install time quite a bit smaller. In particular as inside of containers kmod doesn't help anyway as CAP_SYS_MODULE is not available anyway. While we are at it, also share the code that sets up logging/kmod context. After: $ lddtree ./build/systemd systemd => ./build/systemd (interpreter => /lib64/ld-linux-x86-64.so.2) libsystemd-core-255.so => ./build/src/core/libsystemd-core-255.so libaudit.so.1 => /lib64/libaudit.so.1 libcap-ng.so.0 => /lib64/libcap-ng.so.0 ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 libm.so.6 => /lib64/libm.so.6 libmount.so.1 => /lib64/libmount.so.1 libblkid.so.1 => /lib64/libblkid.so.1 libseccomp.so.2 => /lib64/libseccomp.so.2 libselinux.so.1 => /lib64/libselinux.so.1 libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 libsystemd-shared-255.so => /home/lennart/projects/systemd/build/src/shared/libsystemd-shared-255.so libacl.so.1 => /lib64/libacl.so.1 libattr.so.1 => /lib64/libattr.so.1 libcap.so.2 => /lib64/libcap.so.2 libcrypt.so.2 => /lib64/libcrypt.so.2 libgcrypt.so.20 => /lib64/libgcrypt.so.20 libgpg-error.so.0 => /lib64/libgpg-error.so.0 liblz4.so.1 => /lib64/liblz4.so.1 libcrypto.so.3 => /lib64/libcrypto.so.3 libz.so.1 => /lib64/libz.so.1 libpam.so.0 => /lib64/libpam.so.0 libeconf.so.0 => /lib64/libeconf.so.0 liblzma.so.5 => /lib64/liblzma.so.5 libzstd.so.1 => /lib64/libzstd.so.1 libc.so.6 => /lib64/libc.so.6 Before: $ lddtree ./build/systemd systemd => ./build/systemd (interpreter => /lib64/ld-linux-x86-64.so.2) libsystemd-core-255.so => ./build/src/core/libsystemd-core-255.so libaudit.so.1 => /lib64/libaudit.so.1 libcap-ng.so.0 => /lib64/libcap-ng.so.0 ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 libkmod.so.2 => /lib64/libkmod.so.2 libzstd.so.1 => /lib64/libzstd.so.1 liblzma.so.5 => /lib64/liblzma.so.5 libz.so.1 => /lib64/libz.so.1 libcrypto.so.3 => /lib64/libcrypto.so.3 libgcc_s.so.1 => /lib64/libgcc_s.so.1 libm.so.6 => /lib64/libm.so.6 libmount.so.1 => /lib64/libmount.so.1 libblkid.so.1 => /lib64/libblkid.so.1 libseccomp.so.2 => /lib64/libseccomp.so.2 libselinux.so.1 => /lib64/libselinux.so.1 libpcre2-8.so.0 => /lib64/libpcre2-8.so.0 libsystemd-shared-255.so => /home/lennart/projects/systemd/build/src/shared/libsystemd-shared-255.so libacl.so.1 => /lib64/libacl.so.1 libattr.so.1 => /lib64/libattr.so.1 libcap.so.2 => /lib64/libcap.so.2 libcrypt.so.2 => /lib64/libcrypt.so.2 libgcrypt.so.20 => /lib64/libgcrypt.so.20 libgpg-error.so.0 => /lib64/libgpg-error.so.0 liblz4.so.1 => /lib64/liblz4.so.1 libpam.so.0 => /lib64/libpam.so.0 libeconf.so.0 => /lib64/libeconf.so.0 libc.so.6 => /lib64/libc.so.6
* | | Merge pull request #31435 from bluca/portable_fix_versionedZbigniew Jędrzejewski-Szmek2024-04-051-0/+43
|\ \ \ | |_|/ |/| | portable: assorted bug fixes
| * | portable: fix 'portablectl list' to show the actual state for extensionsLuca Boccassi2024-03-281-0/+6
| | | | | | | | | | | | | | | | | | | | | When listing images they are inspected one by one, so in case of a portable with extensions they always resulted as not found. Allow a partial match when listing, so that we can find the appropriate unit that an image belongs to, and list the correct state as attached.
| * | Ensure that a portable is not detached when another portable that shares the ↵Luca Boccassi2024-03-281-0/+24
| | | | | | | | | | | | | | | | | | | | | same base is detached The matches line includes all images, but the logic returned immediately with a successful match if the first element matches.
| * | os-util: allow matching versioned image with extension-release fileLuca Boccassi2024-03-281-0/+13
| | | | | | | | | | | | | | | | | | | | | Currently app_1.0.raw is refused if it contains extension-release.d/extension-release.app, which stops one from using versioned images without using the force flag to disable the check. Relax it so that only the actual name, and not the version, is compared, like it already happens in other places.