summaryrefslogtreecommitdiffstats
path: root/test/run-unit-tests.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-05-14NEWS: update contributors listLuca Boccassi1-35/+42
2024-05-14cgroup-util: allow cg_read_pid() to skip unmapped (zero) pidsTimo Rothenpieler7-32/+48
2024-05-14libsystemd-network: skip dhcp server test in case of EAFNOSUPPORTRadoslav Kolev1-1/+3
We want to eanble running tests as part of the build, but our builds run in VMs with networking disabled.
2024-05-14test: Run TEST-64-UDEV-STORAGE with mkosiDaan De Meyer25-23/+419
We add a configure script for each subtest to add the required qemu arguments. Co-authored-by: Richard Maw <richard.maw@codethink.co.uk>
2024-05-14mkosi: Mask mdmonitor and isc-dhcp-server servicesDaan De Meyer1-0/+3
They always fail and do not ship with proper units so we can't disable them with presets so we mask them instead.
2024-05-14TEST-64-UDEV-STORAGE: Skip LVM subtests on UbuntuDaan De Meyer1-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.
2024-05-14TEST-64-UDEV-STORAGE: Bump timeout for testcase_simultaneous_events_1Daan De Meyer1-1/+1
The timeout is reliably hit when running tests in mkosi.
2024-05-14TEST-64-UDEV-STORAGE: Skip btrfs_basic if btrfs module is not availableDaan De Meyer1-0/+5
2024-05-14TEST-64-UDEV-STORAGE: Check for tgt and tgtd servicesDaan De Meyer1-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.
2024-05-14TEST-64-UDEV-STORAGE: Add missing udevadm settleDaan De Meyer1-0/+1
Otherwise we try to do the check before the udev queue is empty which will make it fail.
2024-05-14TEST-64-UDEV-STORAGE: Use virtio-scsi-pci instead of ahciDaan De Meyer2-23/+23
The debian cloud kernel does not support ahci, so let's use virtio-scsi-pci everywhere instead.
2024-05-14TEST-64-UDEV-STORAGE: Use ID based pathsDaan De Meyer1-4/+3
2024-05-14test: Ignore configure scripts in minimal imagesDaan De Meyer4-1/+6
These are always aimed at the system image so ignore any specified configure scripts in the minimal images.
2024-05-14test: Add cmdline field to configure extra kernel command line argsDaan De Meyer3-10/+16
Configuring extra cmdline arguments as a list is much nicer than having to pass the --kernel-command-line-extra argument manually.
2024-05-14test: Generate basic testsuite services with mesonDaan De Meyer74-493/+60
Most of these are identical, let's just generate from a meson template.
2024-05-14TEST-46-HOMED: Simplify service unitDaan De Meyer2-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.
2024-05-14TEST-06-SELINUX: Simplify auto-relabelingDaan De Meyer5-30/+9
Let's ship a .autorelabel file so we can get rid of firstboot-autorelabel.service.
2024-05-14test: Rename mkosi_args to mkosi-argsDaan De Meyer5-6/+6
2024-05-14test: Disable tests via 'enabled' fieldDaan De Meyer7-6/+59
This allows doing other stuff with the test without actually defining the test, such as generating a service unit automatically.
2024-05-14test: Simplify argument/variable namesDaan De Meyer2-10/+10
2024-05-14test: Rename testsuite-XX units to match test nameDaan De Meyer395-588/+592
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.
2024-05-14test: Rework integration test definitionsDaan De Meyer58-140/+507
Let's make this behave more like all the rest of the meson stuff. This also is the first step to making it a bit more flexible so we can define integration tests in different ways as will be seen in the next commits.
2024-05-14TEST-01-BASIC: Drop logic to run test without install-tests=trueDaan De Meyer1-10/+0
We don't support this for any other tests either so let's drop the support for running TEST-01-BASIC without installing as well to make the upcoming commit easier to implement.
2024-05-14mkosi: Update to latestDaan De Meyer1-1/+1
2024-05-14core: Imply DefaultDependencies=no for credential mountsDaan De Meyer3-4/+8
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.
2024-05-14shared/bootspec: use FOREACH_ARRAY moreMike Yuan1-7/+6
2024-05-14shared/bootspec: use isempty where appropriateMike Yuan1-1/+1
2024-05-14shared/bootspec: use path_make_absolute where appropriateMike Yuan1-4/+1
2024-05-14shared/bootspec: inline iterator varMike Yuan1-12/+6
Also, do not bump 'line' until the end of the loop. Otherwise, log_syntax() below logs about the wrong line number.
2024-05-14shared/bootspec: add missing assertionsMike Yuan1-3/+10
2024-05-14sd-event: increase test-event timeout to 120sRadoslav Kolev1-1/+4
The test-event test seems to be taking quite a bit more time than the other 'simple tests', which usually complete in < 1s. In case of a slower or loaded machine the default 30s timeout is not enough.
2024-05-14man: fix typoYu Watanabe1-1/+2
Follow-up for 7df0297ac5aa784209d4c719c87fdd707a9f34cf.
2024-05-14dlfcn-util: fix typoYu Watanabe1-1/+1
Follow-up for 2f6bd11c1a0147f6bd24bce3ed00c3d91c0884e6.
2024-05-14TODO: fix typoYu Watanabe1-1/+1
Follow-up for 84bdf71592be032fa4100fb7b0ed0a9345942ece.
2024-05-14bootctl: fix crash when parsing addon without .cmdline sectionLuca Boccassi1-2/+4
Follow-up for 706ca67d3074b2a405ee8fe5de307416e4915b9f
2024-05-14update TODOLennart Poettering1-0/+4
2024-05-14network: IPv6 Compliance RFC4862: Address Lifetime Expiry (Hosts Only) ↵Matt Muggeridge1-15/+16
[v6LC.3.2.2] RFC 4862 Section 5.5.3, bullet e, sub-bullet 3 applies to existing addresses, i.e. when address_get() returns success. If the address is new (i.e. address_get() fails), then we should not be adding 2 hours to the lifetime_valid_usec. Instead, use the valid_lifetime from the RA's Prefix Information Option. This change allows v6LC.3.2.2 to pass. Also verified all v6LC3.2.* tests pass. This covers all the v6LC tests from Group2: Router Advertisement Processing and Address Lifetime. Fixes #32652.
2024-05-13network: IPv6 Compliance: Router Advertisement Processing, Reachable Time ↵Matt Muggeridge1-21/+0
[v6LC.2.2.15] (#32792) Previously, RA option fields were being ignored when the Router Lifetime value was zero. Remove this logic to be compliant with RFC4861. Extract from: https://www.ietf.org/rfc/rfc4861.html#section-4.2, p.21, first paragraph: The Router Lifetime applies only to the router's usefulness as a default router; it does not apply to information contained in other message fields or options. This affected IPv6 Conformance test: v6LC.2.2.15: Router Advertisement Processing, Reachable Time. Fixes #31842. Co-authored-by: Matt Muggeridge <Matt.Muggeridge@hpe.com>
2024-05-13curl-glue: catch libcurl attempting to change timeout handler when we ↵Lennart Poettering1-0/+7
destroy a curl context on exit If we destroy both an event loop and a curl contect object at the same time, then we get into this weird situation where curl wants us to reconfigure a timout event source right before destruction, which sd-event will refuse however, since it is already being shutdown. Hence, catch that and simply don't bother adjusting the timeout, since we cannot get back from there anyway.
2024-05-13machined: return recognizable error when we try to register the same machine ↵Lennart Poettering3-2/+6
name twice
2024-05-13core/service: remove unnecessary reset of notify_access_overrideMike Yuan1-4/+1
This already gets reset in service_enter_dead() and service_start().
2024-05-13varlink: rename vsockCid → vSockCid fieldLennart Poettering3-3/+3
2024-05-13hwdb: ASRock LED Controller classified incorrectly as joystick due to ↵KayJay71-0/+6
buttons and axis (#32775) The function `builtin-input_id` incorrectly identifies the ASRock LED Controller as an input device due to the presence of buttons and axis. To fix this we add a new rule in `hwdb.d/60-input-id.hwdb`. The properties have been set to empty instead of `0` because some programs might check if the value is set at all instead of checking its value, as discussed in #32773. The device has no real keys. The devices is controlled by i2c interface and some settings in UEFI, and it provides an header to connect LED strips and similar devices. I suppose it's possible that ASRock intended to connect devices with buttons for controlling LEDs to it, but: (i) the controller itself does not have key, (ii) to my knowledge no such device exists. So I think we can unset that property as well. On a sidenote, unsetting those properties does not affect the i2c interface, OpenRGB still interacts normally with the device. Fixes #32773.
2024-05-13TEST-38-FREEZER: Relax regex a littleDaan De Meyer1-1/+1
The state might be "freezing-by-parent" as well so let's take that into account. Fixes #32746
2024-05-13hwdb: ID_INPUT_XYZ allows an empty stringYu Watanabe1-13/+14
This is for making CIs for #32775 green.
2024-05-13build(deps): bump pkg/arch from `b13e94a` to `b578e90`dependabot[bot]1-0/+0
Bumps pkg/arch from `b13e94a` to `b578e90`. --- updated-dependencies: - dependency-name: pkg/arch dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13build(deps): bump pkg/debian from `7cc898c` to `824c52f`dependabot[bot]1-0/+0
Bumps pkg/debian from `7cc898c` to `824c52f`. --- updated-dependencies: - dependency-name: pkg/debian dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-05-13man: add v257 tagYu Watanabe1-0/+1
Even though v256-final is not released yet, let's v257 tag now to make not PRs for v257 conflict with each other.
2024-05-13journal-rate-limit: replace in-house management of JournalRateLimitGroup ↵Yu Watanabe5-123/+60
with OrderedHashmap No functional change, just refactoring.
2024-05-12hwdb: updated Librem 11 accelerometer (#32772)zeroskyx1-3/+4