summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test: validate that fdstore pinning worksLennart Poettering2023-04-136-0/+119
|
* Merge pull request #25608 from poettering/dissect-moarLennart Poettering2023-04-122-0/+39
|\ | | | | dissect: add dissection policies
| * test: add integration test for image policyLennart Poettering2023-04-051-0/+27
| |
| * analyze: add 'image-policy' tool for analyzing image dissection policiesLennart Poettering2023-04-051-0/+12
| |
* | Merge pull request #27165 from poettering/fdstore-envvarLuca Boccassi2023-04-121-0/+1
|\ \ | | | | | | service: tell service processes that the fdstore is available via an e…
| * | service: tell service processes that the fdstore is available via an env varLennart Poettering2023-04-121-0/+1
| | |
* | | Merge pull request #27220 from yuwata/sd-device-follow-ups-for-devlinkDaan De Meyer2023-04-121-4/+11
|\ \ \ | |/ / |/| | sd-device: several follow-ups about devlink creation
| * | udev-test: add more testcases for SYMLINKYu Watanabe2023-04-121-4/+11
| | |
* | | test: drop binary stripping stuffFrantisek Sumsal2023-04-121-20/+6
|/ / | | | | | | | | | | | | | | Stripping the binaries in the test images makes potential stack straces quite useless, so let's drop the stripping stuff to make test fails a bit more developer friendly. Related: https://github.com/systemd/systemd-centos-ci/pull/616
* | Merge pull request #27186 from yuwata/os-releaseDaan De Meyer2023-04-111-1/+1
|\ \ | | | | | | os-util: several cleanups and introduce _at() variants of os-release parsers
| * | os-util: make $SYSTEMD_OS_RELEASE prefixed with the root directoryYu Watanabe2023-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | To make it consistent with other env vars, e.g. $SYSTEMD_ESP_PATH or $SYSTEMD_XBOOTLDR_PATH. This is useful when the root is specified by a file descriptor, instead of a path.
* | | Merge pull request #27169 from yuwata/udev-rule-refuse-unsafe-pathZbigniew Jędrzejewski-Szmek2023-04-114-17/+128
|\ \ \ | |/ / |/| | sd-device,udev: refuse unsafe path in SYMLINK= and TAG=
| * | test-64: add tests for compat devlinks for NVMe driveYu Watanabe2023-04-083-5/+73
| | |
| * | sd-device,udev: tag must be a valid filenameYu Watanabe2023-04-081-9/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All tags are managed under /run/udev/tags, and the directories there are named with tags. Hence, each tag must be a valid filename. This also makes all validity check moved to sd-device side, and makes failure caused by setting invalid tags non-critical. With this change, an empty string cannot be assigned to TAG=, hence the test cases are adjusted.
| * | sd-device,udev: refuse invalid devlink and store in normalized formYu Watanabe2023-04-081-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | This is especially for the case that the path contains "..". Prompted by https://github.com/systemd/systemd/pull/27164#issuecomment-1498863858. This also makes SYMLINK= gracefully handle paths prefixed with "/dev/", and manage devlink paths with path_hash_ops.
* | | test: update descriptionYu Watanabe2023-04-111-1/+1
| | |
* | | udev/scsi_id: rename positional argumentsYu Watanabe2023-04-112-4/+4
| | |
* | | Merge pull request #27182 from mrc0mmand/test-tweaksLuca Boccassi2023-04-102-2/+2
|\ \ \ | | | | | | | | test: a couple of stability tweaks
| * | | test: bump the timeout for non-qemu runs to 90sFrantisek Sumsal2023-04-071-1/+1
| | | | | | | | | | | | | | | | When Ubuntu CI is oversaturated, 60s doesn't seem to be enough.
| * | | test: enable the systemd-resolved unit in TEST-75Frantisek Sumsal2023-04-071-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without enabling itx, there's no symlink to the org.freedesktop.resolve1 dbus service, so there exists a tiny window in which the sequence of `systemctl start` and `systemctl service-log-level` commands might fail: [ 1127.615151] H systemd[1]: Started Network Name Resolution. [ 1127.617768] H testsuite-75.sh[34]: + systemctl service-log-level systemd-resolved.service debug [ 1127.621251] H dbus-daemon[54]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.24' (uid=0 pid=119 comm="systemctl service-log-level systemd-resolved> [ 1127.621336] H systemd[1]: dbus-org.freedesktop.resolve1.service: Failed to load configuration: No such file or directory [ 1127.621364] H systemd[1]: dbus-org.freedesktop.resolve1.service: Trying to enqueue job dbus-org.freedesktop.resolve1.service/start/replace [ 1127.621395] H systemd[1]: D-Bus activation failed for dbus-org.freedesktop.resolve1.service: Unit dbus-org.freedesktop.resolve1.service not found. [ 1127.621965] H dbus-daemon[54]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found. [ 1127.622046] H systemd[1]: systemd-resolved.service: D-Bus name org.freedesktop.resolve1 now owned by :1.25 [ 1127.622130] H systemctl[119]: Failed to set log level of org.freedesktop.resolve1 to debug: Unit dbus-org.freedesktop.resolve1.service not found. Spotted in a couple of recent Ubuntu CI runs.
* | | test: add another regression testYu Watanabe2023-04-101-0/+6
| | | | | | | | | | | | For #27187, which should be also caused by #26956.
* | | test: systemd-analyze blame should succeed nowYu Watanabe2023-04-101-2/+4
| | |
* | | test: check if we skip the full setup on daemon-reexec (again)Frantisek Sumsal2023-04-081-25/+21
|/ / | | | | | | | | | | | | | | My original assumption in 61961e693d was wrong, since we do reset /dev/console during reexec (see make_console_stdio()), so the test was quite racy. Let's replace it with something, hopefully, more reliable. Follow-up to 61961e693d.
* | Merge pull request #27126 from yuwata/journal-compressZbigniew Jędrzejewski-Szmek2023-04-071-0/+32
|\ \ | | | | | | sd-journal: allow to specify compression algorithm through env
| * | test: add test case that journal file is created with the requested ↵Yu Watanabe2023-04-071-0/+32
| | | | | | | | | | | | compression algorithm
* | | Merge pull request #27158 from mrc0mmand/more-testsYu Watanabe2023-04-079-0/+729
|\ \ \ | | | | | | | | test: introduce TEST-81-GENERATORS
| * | | test: introduce TEST-81-GENERATORSFrantisek Sumsal2023-04-068-0/+641
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some explicit tests for various generators we ship, e.g.: - systemd-debug-generator - systemd-environment-d-generator - systemd-fstab-generator
| * | | test: add a couple of tests for systemd-modules-loadFrantisek Sumsal2023-04-061-0/+88
| | | |
* | | | test: check if we skip the full setup on daemon-reexecFrantisek Sumsal2023-04-073-3/+48
| | | | | | | | | | | | | | | | | | | | | | | | A simple test case for issue #27106. Resolves: #27139
* | | | confext: add tests for systemd-confextmaanyagoenka2023-04-051-0/+11
| | | |
* | | | test: use kbd-mode-map we ship in TEST-73-LOCALEFranck Bui2023-04-051-0/+5
| |_|/ |/| | | | | | | | | | | The rational is the same as the one described in commit be0cc2ce6c947aafadb3f42dba405269f670b31c.
* | | test/test-functions: fix typo in install_suse_systemd()Thomas Blume2023-04-041-1/+1
| |/ |/|
* | udev-rules: check tokens orderDmitry V. Levin2023-04-031-0/+4
| | | | | | | | | | When invoked by udevadm verify, warn about rules that have PROGRAM assignments specified after RESULT checks.
* | Merge pull request #27044 from bluca/sysext_recursive_dirLennart Poettering2023-04-031-0/+11
|\ \ | |/ |/| Ensure sysexts do not contain an os-release file, do not load sysexts from /usr[/local]/lib/extensions/
| * sysext: validate that they do not contain os-releaseLuca Boccassi2023-03-301-0/+11
| | | | | | | | | | sysexts are not supposed to ship os-release files, enforce this when loading them
* | Merge pull request #27087 from mrc0mmand/missing-coverageFrantisek Sumsal2023-04-018-225/+264
|\ \ | | | | | | test: set ReadWritePaths= for test-.services when built w/ coverage
| * | test: shed some light into the whole coverage situationFrantisek Sumsal2023-04-011-0/+36
| | |
| * | test: set ReadWritePaths= for test-.services when built w/ coverageFrantisek Sumsal2023-03-317-225/+228
| |/ | | | | | | | | | | | | | | | | | | | | | | Let's make the dropin, to make the build dir writable for gcov, a bit more generic, so it can be used by all units starting with prefix test-. This should help with a bunch of recent reports about missing coverage I got, as well as with existing test units using DynamicUser=true. This might feel a bit like a magic trick from behind the curtains, but I want to touch the actual tests as little as possible, since it makes them unnecessarily messy (see the various workarounds for sanitizers), and the coverage reports are generated only in a specific CI job anyway.
* | firstboot: Add --reset optionDaan De Meyer2023-04-011-0/+9
| | | | | | | | | | | | This can be used to prepare an image for firstboot by removing all files that systemd knows about that contain machine specific information.
* | treewide: fix unnecessary $ on arithmetic variablesDmitry V. Levin2023-04-013-5/+5
| | | | | | | | This should fix shellcheck warning SC2004.
* | test: fixed negative checks in TEST-70-TPM2.OMOJOLA JOSHUA DAMILOLA2023-03-311-39/+20
| | | | | | | | Use in-line error handling rather than redirections. Follow up on #27020
* | test: use setpriv instead of su for user switch from rootThomas Blume2023-03-314-8/+6
|/ | | | | | | | | | | | systemd-repart needs to find mkfs.ext4 for the test. This is located in the directory /usr/sbin on openSUSE Tumbleweed. But since the variable ALWAYS_SET_PATH in /etc/login.defs is set to yes, su re-initializes the $PATH variable and removes /usr/sbin. Hence, mkfs.ext4 is not found and the test fails. Using setpriv instead of su fixes this issue and is more appropriate to do the switch user task from root. [zjs: move setpriv to $BASICTOOLS and force-push to retrigger CI]
* test: add test case for fdstore dumping logic, and systemd-notify --fd=Lennart Poettering2023-03-291-0/+27
|
* Merge pull request #27049 from DaanDeMeyer/update-mkosiDaan De Meyer2023-03-295-112/+2
|\ | | | | mkosi: Update to latest
| * mkosi: Update to latestDaan De Meyer2023-03-293-111/+0
| | | | | | | | | | | | | | | | | | | | | | - Drop Netdev= as it was removed in mkosi - Always install python-psutil in the final image (required for networkd tests) - Always Install python-pytest in the final image (required for ukify tests) - Use the narrow glob for all centos python packages - Drop the networkd mkosi config files (the default image can be used instead) - Use ".conf" as the mkosi config file suffix everywhere - Copy src/ to /root/src in the final image and set gdb substitute path in .gdbinit to make gdb work properly
| * test: Install systemd-networkd-tests.py when install_tests is enabledDaan De Meyer2023-03-292-1/+2
| |
* | Merge pull request #27020 from 1awesomeJ/nitLuca Boccassi2023-03-291-0/+78
|\ \ | |/ |/| systemd-cryptenroll: adding integration test cases
| * added more test casesOMOJOLA JOSHUA DAMILOLA2023-03-281-0/+78
| |
* | udev_rules_parse_file: do not ignore ENOENT when invoked by udevadm verifyDmitry V. Levin2023-03-291-0/+2
| | | | | | | | | | | | Make sure the ENOENT exception reintroduced by commit 9db7081d83d56cd2523b03f9eb9d67ef1c93c55f is not applied when the parser is invoked by udevadm verify.
* | TEST-80: synchronize explicitly instead of by timeLennart Poettering2023-03-293-17/+73
| | | | | | | | | | | | | | | | | | | | This removes "sleep" invocations, and makes the notify access testcase a lot more robust to runtime jitter. We use a pair of fifos in the fs to sync instead. Also various other improvoements, including comments. (Also removes the unnecessary "no-qemu" restriction)