summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #26771 from YHNdnzj/machinectl-editYu Watanabe2023-03-162-0/+47
|\ | | | | machinectl: add verb edit and cat to operate on .nspawn files
| * test: add testsuite-74.machinectlMike Yuan2023-03-152-0/+47
| |
* | test: fix testsuite-17.10.shDmitry V. Levin2023-03-161-0/+1
| | | | | | | | | | | | Make sure /etc/udev/hwdb.d/ exists before creating a file inside it. Fixes: 95cf8cae77f7 ("test: add coverage test for udevadm")
* | udev-rules: check for conflicting and duplicate expressionsDmitry V. Levin2023-03-161-2/+24
|/ | | | | | | | Log an error when a rule line contains conflicting match expressions, e.g. NAME=="value", NAME!="value" Log a warning when a rule line contains duplicate expressions, e.g. NAME=="value", NAME=="value"
* Merge pull request #26804 from fbuihuu/fixes-for-test-58-repartLuca Boccassi2023-03-152-3/+3
|\ | | | | Fixes for test 58 repart
| * tests: don't use absolute paths when installing binaries in TEST-58-REPARTFranck Bui2023-03-141-2/+2
| | | | | | | | | | | | Let image_install figures the binary paths out itself as not all distributions ship the mkfs.* tools in the same location. For example openSUSE ships mksquashfs in /usr/bin/.
| * tests: fix inverted condition in testsuite-58.shFranck Bui2023-03-141-1/+1
| |
* | core: make the memory pressure cgroup path writable when ↵Luca Boccassi2023-03-151-1/+1
| | | | | | | | | | | | | | | | | | ProtectControlGroups=yes The interface requires services to write to the cgroup file to activate notifications, but with ProtectControlGroups=yes we make it read-only. Add a writable bind mount. Follow-up for 6bb0084204bd93122c9f04391b80aea5a8a0ff08
* | test: assume run-unit-tests.py and unit tests are installed in the same ↵Franck Bui2023-03-151-3/+4
| | | | | | | | | | | | | | directory This avoids hard coding the path of the directory where the unit tests are installed.
* | Merge pull request #26662 from yuwata/test-execute-network-namespace-pathDaan De Meyer2023-03-144-4/+34
|\ \ | | | | | | test-execute: add tests for NetworkNamespacePath=
| * | test-execute: add test for NetworkNamespacePath=Yu Watanabe2023-03-042-0/+32
| | | | | | | | | | | | Prompted by https://github.com/systemd/systemd/issues/26422#issuecomment-1435772839.
| * | test-execute: simplify the tests for PrivateNetwork=Yu Watanabe2023-03-042-4/+2
| | | | | | | | | | | | | | | If an exotic network driver is loaded, there may exist an unexpected network interface.
* | | test: testsuite-26: remove duplicate sourceMike Yuan2023-03-141-3/+0
| | |
* | | Merge pull request #26781 from mrc0mmand/tests-againYu Watanabe2023-03-142-0/+94
|\ \ \ | | | | | | | | test: add a couple of tests for systemd-path
| * | | test: add a couple of tests for systemd-pathFrantisek Sumsal2023-03-131-0/+89
| | | |
| * | | test: exercise JSON transformations in busctlFrantisek Sumsal2023-03-091-0/+5
| | | |
* | | | systemctl: refuse to acquire dbus connection with --globalYu Watanabe2023-03-131-0/+0
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Maybe, better to check the runtime scope each verb for better log message, but this is a good start point to not trigger assertion. Fixes oss-fuzz#56915 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=56915). Fixes #26402 and #26754.
* | | Merge pull request #26641 from medhefgo/boot-elf2efiYu Watanabe2023-03-112-3/+1
|\ \ \ | | | | | | | | boot: Drop gnu-efi / Add elf2efi.py
| * | | ci: Adjust for new EFI buildJan Janssen2023-03-101-1/+1
| | | |
| * | | tree-wide: Drop gnu-efiJan Janssen2023-03-102-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This drops all mentions of gnu-efi and its manual build machinery. A future commit will bring bootloader builds back. A new bootloader meson option is now used to control whether to build sd-boot and its userspace tooling.
* | | | udev_rules_parse_file: issue diagnostics about duplicate LABEL tokensDmitry V. Levin2023-03-101-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | When a rules contains several LABEL tokens, the parser used to silently discard all of them besides the last one without any diagnostics at all. It's time to break the vow of silence and let the parser issue a warning.
* | | | testsuite-17.11.sh: check udevadm verify --rootDmitry V. Levin2023-03-101-0/+20
| | | |
* | | | udevadm verify: load all rules from the system if no rules were givenDmitry V. Levin2023-03-101-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | When udevadm verify is invoked without positional arguments, that is, when no udev rules files are specified, load all rules files from the system like the udev daemon does, and verify them.
* | | | testsuite-17.11.sh: prepare to test udevadm verify --rootDmitry V. Levin2023-03-101-63/+98
| | | |
* | | | testsuite-17.11.sh: create all files in a temporary directoryDmitry V. Levin2023-03-101-0/+10
| | | | | | | | | | | | | | | | | | | | Make sure the test would not collide with anything else by moving all files it created into a temporary directory.
* | | | testsuite-17.11.sh: robustify unknown user/group checksDmitry V. Levin2023-03-101-2/+2
| | | | | | | | | | | | | | | | | | | | Use certainly invalid user/group names in the tests that check unknown user/group diagnostics.
* | | | test: run script from /tmp, not /runLuca Boccassi2023-03-101-6/+2
|/ / / | | | | | | | | | | | | | | | | | | On Debian the test fails because /run is noexec. Simply create the script in /tmp (and use a BindPath=), as other tests are doing. Follow-up for 3b7101183cac4b35a8bd6ea2c1de9260c33f977f
* | | Merge pull request #26693 from poettering/udev-loop-linksLennart Poettering2023-03-101-0/+22
|\ \ \ | | | | | | | | udev: add /dev/loop/by-inode/… + /dev/loop/by-ref/… loopback block device symlinks
| * | | test: test new systemd-dissect --attach/--detach/--loop-ref= and /dev/loop/* ↵Lennart Poettering2023-03-091-0/+22
| |/ / | | | | | | | | | | | | | | | symlinks Let's test that everything we just added works in combination.
* | | Merge pull request #26734 from mrc0mmand/test-followupsLuca Boccassi2023-03-105-10/+14
|\ \ \ | | | | | | | | Assorted test tweaks
| * | | test: fall back to /sys/fs/cgroup/systemd if necessaryFrantisek Sumsal2023-03-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Necessary for some CI setups where we boot an nspawn container on a host with older systemd with legacy hierarchy, so systemd mounts its stuff under /sys/fs/cgroup/systemd.
| * | | test: force mkfs.btrfs to overwrite any existing file systemsFrantisek Sumsal2023-03-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mkfs.btrfs (unlike mkfs.ext4) checks if the target already contains a file system and refuses to continue if so. This causes spurious fails in case the random garbage on the temporary device matches a valid FS header: [ 19.723806] testsuite-64.sh[355]: + udevadm lock --device=/dev/mapper/encbtrfs0 --device=/dev/mapper/encbtrfs1 --device=/dev/mapper/encbtrfs2 --device=/dev/mapper/encbtrfs3 mkfs.btrfs -M -d raid1 -m raid1 -L btrfs_mencdisk -U deadbeef-dead-dead-beef-000000000003 /dev/mapper/encbtrfs0 /dev/mapper/encbtrfs1 /dev/mapper/encbtrfs2 /dev/mapper/encbtrfs3 [ 19.918934] testsuite-64.sh[2494]: ERROR: /dev/mapper/encbtrfs0 appears to contain an existing filesystem (hfsplus) [ 19.920490] testsuite-64.sh[2494]: ERROR: use the -f option to force overwrite of /dev/mapper/encbtrfs0 Let's force mkfs.btrfs to overwrite the file system in such case.
| * | | test: don't fail if we can't remove the scsi_debug moduleFrantisek Sumsal2023-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's make the cleanup 'best effort' operation, as sometimes we might not be able to remove the scsi_debug module, and we don't really care if it stays loaded: [ 88.521333] testsuite-17.sh[1827]: ID_TEST=test [ 88.522015] testsuite-17.sh[1679]: + rmmod scsi_debug [ 88.524795] testsuite-17.sh[1828]: rmmod: ERROR: Module scsi_debug is in use [ 88.527786] testsuite-17.sh[1679]: + cleanup_17_10
| * | | test: bump the D-Bus related timeouts to 120sFrantisek Sumsal2023-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's attempt to reduce the amount of flakes further when the AWS region we run in is under heavy load and the hypervisor stars stealing our CPU time. Follow-up to e0cbb73911 and c78d18215b.
| * | | test: ignore `busctl tree` failsFrantisek Sumsal2023-03-091-1/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | As the test runs during machine bootup where jobs run in parallel, busctl might attempt to introspect a job that already finished and fail. Since in this case we're more interested in crashes/leaks, let's ignore the exit code. Follow-up to 16600a8661.
* | | Merge pull request #26731 from yuwata/mempressure-follow-upsLuca Boccassi2023-03-091-0/+2
|\ \ \ | | | | | | | | Mempressure follow ups
| * | | core: add missing MemoryPressureWatch= and MemoryPressureThresholdSec= settingYu Watanabe2023-03-091-0/+2
| |/ / | | | | | | | | | | | | | | | Follow-up for #26393. Addresses https://github.com/systemd/systemd/pull/26393#issuecomment-1458655798.
* | | mempress: change default PSI window duration to 2sLennart Poettering2023-03-091-1/+1
|/ / | | | | | | | | | | | | | | | | | | This changes the PSI window duration we default to for watching memory pressure events from 1s to 2s. This is because apparently the kernel will soon disallow window durations other than 2s for unprivileged processes. Hence, we'll bump the threshold from 100m to 200ms, and the window from 1s to 2s.
* | Merge pull request #26038 from ↵Zbigniew Jędrzejewski-Szmek2023-03-0911-1/+63
|\ \ | | | | | | | | | | | | lilyinstarlight/fix/fstab-generator-sysroot-without-cmdline fstab-generator: use correct targets when /sysroot is specificied in fstab only
| * | test: add fstab file support for fstab-generator testsLily Foster2023-01-2511-1/+63
| | |
* | | udev_rules_parse_file: issue diagnostics about line continuation at EOFDmitry V. Levin2023-03-081-2/+10
| | | | | | | | | | | | | | | | | | | | | When udev rules file ends with a line continuation, the parser used to silently ignore the line without any diagnostics at all. It's time to break the vow of silence and let the parser issue some error diagnostics.
* | | test: check udevadm verify diagnostics of unused labelsDmitry V. Levin2023-03-081-0/+19
| | |
* | | test: add a test for udevadm verifyDmitry V. Levin2023-03-081-0/+180
| | |
* | | test: add a couple of tests for systemd-id128Frantisek Sumsal2023-03-081-0/+41
| | |
* | | test: add a couple of tests for systemd-escapeFrantisek Sumsal2023-03-081-0/+102
| | |
* | | test: add a couple of tests for busctlFrantisek Sumsal2023-03-081-0/+102
| | |
* | | test: add test for new /sbin/mount.ddi helperLennart Poettering2023-03-061-0/+6
| | |
* | | Merge pull request #26650 from yuwata/udev-triggerYu Watanabe2023-03-061-2/+5
|\ \ \ | |_|/ |/| | test: generate debugging logs for udevd after restart
| * | test: trigger new events after all currently queued events are processedYu Watanabe2023-03-031-0/+3
| | | | | | | | | | | | | | | Otherwise, udevd may be busy and udevadm may not receive the reply for the control packet within the time limit.
| * | test: generate debugging logs for udevd after restartYu Watanabe2023-03-031-2/+2
| | |