summaryrefslogtreecommitdiffstats
path: root/test/units (follow)
Commit message (Collapse)AuthorAgeFilesLines
* TEST-64-UDEV-STORAGE: Fix drive IDDaan De Meyer2024-05-141-1/+1
|
* TEST-64-UDEV-STORAGE: Skip LVM subtests on UbuntuDaan De Meyer2024-05-141-0/+12
| | | | | These fail for unknown reasons on Ubuntu. Until someone from Ubuntu who cares can figure out why, let's skip these tests on Ubuntu.
* TEST-64-UDEV-STORAGE: Bump timeout for testcase_simultaneous_events_1Daan De Meyer2024-05-141-1/+1
| | | | The timeout is reliably hit when running tests in mkosi.
* TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not availableDaan De Meyer2024-05-141-0/+5
|
* TEST-64-UDEV-STORAGE: Check for tgt and tgtd servicesDaan De Meyer2024-05-141-3/+11
| | | | | | | | On Debian/Ubuntu, the unit is named tgt.service instead of tgtd.service, so let's make sure we take that into account. On CentOS, tgtd.service is not available, so let's skip the test if we can't find the service.
* TEST-64-UDEV-STORAGE: Add missing udevadm settleDaan De Meyer2024-05-141-0/+1
| | | | | Otherwise we try to do the check before the udev queue is empty which will make it fail.
* TEST-64-UDEV-STORAGE: Use virtio-scsi-pci instead of ahciDaan De Meyer2024-05-141-13/+13
| | | | | The debian cloud kernel does not support ahci, so let's use virtio-scsi-pci everywhere instead.
* TEST-64-UDEV-STORAGE: Use ID based pathsDaan De Meyer2024-05-141-4/+3
|
* test: Generate basic testsuite services with mesonDaan De Meyer2024-05-1463-542/+0
| | | | | Most of these are identical, let's just generate from a meson template.
* TEST-46-HOMED: Simplify service unitDaan De Meyer2024-05-142-3/+2
| | | | | | | Let's remove the unneeded NotifyAccess=all and start the socket and service in the test itself instead of via the service unit. This makes the test unit identical to the other test units which will allow us to autogenerate it in a later commit.
* TEST-06-SELINUX: Simplify auto-relabelingDaan De Meyer2024-05-142-29/+4
| | | | | Let's ship a .autorelabel file so we can get rid of firstboot-autorelabel.service.
* test: Rename testsuite-XX units to match test nameDaan De Meyer2024-05-14283-444/+444
| | | | | | | Having these named differently than the test itself mostly creates unecessary confusion and makes writing logic against the tests harder so let's rename the testsuite-xx units and scripts to just use the test name itself.
* core: Imply DefaultDependencies=no for credential mountsDaan De Meyer2024-05-141-0/+3
| | | | | | | | Currently, on soft-reboot, /run/credentials/@system is unmounted because it has DefaultDependencies=yes and as such will have Conflicts=umount.target and Before=umount.target. Let's make sure credential mounts survive soft-reboot by implying DefaultDependencies=no for credential mounts.
* TEST-38-FREEZER: Relax regex a littleDaan De Meyer2024-05-131-1/+1
| | | | | | | The state might be "freezing-by-parent" as well so let's take that into account. Fixes #32746
* debug-generator: Allow specifying name of unit-dropin credentialDaan De Meyer2024-05-111-0/+2
| | | | | | | | | | | | | | A fixed name is too rigid, let's give users the ability to define custom drop-in names which at the same time also allows defining multiple dropins per unit. We use ~ as the separator because: - ':' is not allowed in credential names - '=' is used to separate credential from value in mkosi's --credential argument. - '-' is commonly used in filenames - '@' already has meaning as the unit template specifier which might be confusing when adding dropins for template units
* test: wait for network interface reconfigured after updating configYu Watanabe2024-05-101-0/+1
| | | | | | | | Otherwise, at this stage, the interface may be in e.g. initialized or pending state, and the drop-in file introduced by the previous command may not be registered to the state file for the interface. Fixes #32685.
* TEST-46-HOMED: Ignore "Disk Usage" field as wellDaan De Meyer2024-05-091-1/+1
| | | | | | | This can change between the call to homectl inspect and userdbctl user so let's ignore it along with the other disk fields. Fixes #32727
* TEST-04-JOURNAL: Sleep more in delegated cgroup filtering scriptDaan De Meyer2024-05-081-1/+1
| | | | | | | | We already changed logs-filtering.service to sleep 2 seconds before exiting to combat flakyness, let's do the same for the delegated cgroup filtering payload. Fixes #32696 (hopefully)
* TEST-81-GENERATORS: Do a lazy unmountsDaan De Meyer2024-05-082-2/+2
| | | | | | Otherwise we might fail if PID 1 is currently accessing these files. Fixes #32692 (hopefully)
* TEST-74-AUX-UTILS: Make more robustDaan De Meyer2024-05-081-2/+4
| | | | | | | | Let's run mkfs on the file we create instead of the loop device and let's use udevadm wait --settle to wait for udev to settle before doing anything with the loop device Fixes #32680 (hopefully)
* TEST-07-PID1: Fix race in aux-scope subtestDaan De Meyer2024-05-081-1/+1
| | | | | | | | Currently test-aux-scope.service can get killed by the test before it's had a chance to setup its signal handler. Make it Type=notify to fix the race. Fixes #32670 (hopefully)
* TEST-46-HOMED: Skip barely fits test on ext4Daan De Meyer2024-05-061-10/+13
| | | | | | For some reason this fails on ext4 with "No space left on device". Until we figure out why, let's skip the test on ext4 (which is reported as ext2/ext3 by stat).
* TEST-46-HOMED: Only run resize tests on btrfsDaan De Meyer2024-05-061-2/+5
| | | | Other filesystems do not support online shrinking.
* TEST-55-OOMD: Skip on opensuseDaan De Meyer2024-05-061-0/+8
| | | | opensuse does not have the stress tool packaged.
* TEST-55-OOMD: swapoff before adding new swapfileRichard Maw2024-05-061-0/+1
| | | | | When running test images built with read-only /usr a swap partition is likely so needs to be turned off first.
* TEST-04-JOURNAL: Skip bsod test if systemd-bsod is not installedDaan De Meyer2024-05-061-1/+6
| | | | | | systemd is built without qrencode support on CentOS which means systemd-bsod will not be installed. Let's skip the test if that's the case.
* TEST-04-JOURNAL: Make more robustDaan De Meyer2024-05-061-3/+3
| | | | | | Avoid hitting https://github.com/systemd/systemd/issues/2913 by adding some more sleeps. This is required to make the test pass when executed with mkosi on my machine.
* TEST-07-PID1: Schedule exit on successful executionDaan De Meyer2024-05-061-0/+1
| | | | | The test unit has RemainAfterExit=yes so let's schedule our own shutdown from the test itself once we finish running.
* TEST-07-PID1: Test access to allocated loop instead of loop0Richard Maw2024-05-061-3/+3
| | | | | loop0 and 1 can be used by systemd-repart and vanish but we can guarantee that $LODEV was allocated and is available.
* TEST-70-TPM2: Call udevadm wait after attaching disk imageDaan De Meyer2024-05-061-0/+1
| | | | | Otherwise /dev/loop0p1 might not exist when calling systemd-cryptsetup attach.
* TEST-70-TPM2: Add dependency on tpm2.targetDaan De Meyer2024-05-061-0/+2
| | | | | Let's make sure the TPM is available before running the test as the test makes use of it.
* TEST-74-AUX-UTILS: Drop usage of loop moduleDaan De Meyer2024-05-061-21/+17
| | | | | | | This module is builtin on ubuntu causing the test to fail. Let's use just dummy instead. I tried replacing it with scsi_debug but that caused issues with modprobe complaining it could not remove scsi_debug because it was in use.
* TEST-74-AUX-UTILS: Skip run0 test if pam snippet is not installedDaan De Meyer2024-05-061-12/+14
|
* TEST-74-AUX-UTILS: Make sure at least two locales existDaan De Meyer2024-05-063-32/+57
|
* TEST-74-AUX-UTILS: Support running on UEFI systemsRichard Maw2024-05-061-6/+10
|
* TEST-74-AUX-UTILS: Support systems with pre-existing modules configRichard Maw2024-05-061-1/+3
|
* TEST-74-AUX-UTILS: Support credential-provided root SSH public keyRichard Maw2024-05-061-1/+3
| | | | | | When root authorized keys are provided by mkosi they are not newline-terminated so appending a public key to the file results in a corrupt key, so just to be safe we add an empty line.
* TEST-75-RESOLVED: Ignore resource record ifindex fieldDaan De Meyer2024-05-061-2/+2
| | | | | | Depending on host configuration this may or may not be included (e.g. on mkosi we get a result without an ifindex field). Let's strip it from the resolved reply to avoid failing the test.
* TEST-75-RESOLVED: Add missing sleep after knotc reloadDaan De Meyer2024-05-061-0/+1
| | | | | | We already have this workaround for knotc reload a little further in the test, let's apply it to our first invocation of knotc reload as well.
* TEST-75-RESOLVED: Restart systemd-networkdDaan De Meyer2024-05-061-1/+1
| | | | | systemd-networkd might already be running, let's make sure we restart it if it is already running.
* TEST-75-RESOLVED: Move knot configuration to /usr/lib/systemd/tests/testdataDaan De Meyer2024-05-061-0/+15
| | | | | This allows the logic to install the configuration to be done inside the test itself which allows it to be shared with mkosi.
* TEST-21-DFUZZER: Skip test if dfuzzer is not installedRichard Maw2024-05-061-0/+6
|
* Merge pull request #32588 from CodethinkLabs/mkosi-selinuxLuca Boccassi2024-05-043-3/+34
|\ | | | | Add TEST-06-SELINUX to mkosi integration tests
| * test: Integrate custom selinux relabelling unit with firstbootRichard Maw2024-05-032-3/+28
| |
| * test: Skip TEST-06-SELINUX early if not on fedora/centosRichard Maw2024-05-031-0/+6
| | | | | | | | | | | | | | | | | | Other distributions may be able to install selinux but they are not expected to use it. The distribution is tested rather than whether selinux is enabled because it is expected to work on CentOS and Fedora and we want it to fail noisily.
* | test: replace Europe/Kiev with Europe/KyivFrantisek Sumsal2024-05-042-5/+5
|/ | | | | As the former is deprecated and might not be available (i.e. on Ubuntu Noble it's only available after installing the tzdata-legacy package).
* test: drop --tpm2-public-key= from TEST-70Luca Boccassi2024-05-031-1/+1
| | | | | | Fixes test failure Follow-up for 03e3b2672bb6c242c445ee8c02ae7d23dbfcf87d
* systemctl: Implement --wait for kill commandDaan De Meyer2024-05-011-1/+1
| | | | | | TEST-26-SYSTEMCTL is racy as we call systemctl is-active immediately after systemctl kill. Let's implement --wait for systemctl kill and use it in TEST-26-SYSTEMCTL to avoid the race.
* test: Drop /usr overlay workaroundDaan De Meyer2024-04-305-34/+0
| | | | | /usr is not erofs anymore in the mkosi images so let's drop the workaround where we mount a writable tmpfs on top of /usr.
* Revert "TEST-25-IMPORT: Skip if importctl not installed"Daan De Meyer2024-04-301-5/+0
| | | | | | | This reverts commit dcb17e3295dfce1a9a9f4fb648c4750c05d3c46d. importctl is now correctly installed on opensuse, so no need for this workaround anymore.