summaryrefslogtreecommitdiffstats
path: root/test (follow)
Commit message (Collapse)AuthorAgeFilesLines
* core: Fix CPUQuotaPerSecUSec unit file serializationDaan De Meyer2024-06-051-1/+1
| | | | | | | CPUQuota= can deal with float percentages perfectly fine these days (up to two places after the dot), so let's take that into account when serializing the value to the transient unit file so we don't lose precision when specifying e.g. "CPUQuota=0.5%".
* test-network: introduce a .network file to protect existing interfacesYu Watanabe2024-06-031-0/+13
|
* test-network: show PID and Invocation ID of networkdYu Watanabe2024-06-031-0/+10
| | | | | Then, we can easily find relevant journal entry on failure. This is especially useful when the test is running with --no-journal.
* test-network: flush stream buffer and journals before/after running testYu Watanabe2024-06-031-0/+12
|
* test-network: generate debugging logs of networkd-persistent-storage.serviceYu Watanabe2024-06-031-1/+2
|
* test: disable TEST-21-DFUZZER in mkosi, as it is very flackyLuca Boccassi2024-06-031-0/+1
| | | | | Can be re-enabled once https://github.com/systemd/systemd/issues/33156 is solved
* journald: enable persistent FD Store to fix logging during soft-rebootLuca Boccassi2024-06-031-1/+4
| | | | | | | | A unit with StandardOutput=journal (the default) will get its stdout/stderr sockets disconnected when journald stops, as the file descriptors on journald's side are not preserved (it works on restart, as the FD Store keeps them open during restarts). Set FileDescriptorStorePreserve=yes so that the journal FD's stay open during a soft reboot, and applications don't get broken stdout/stderr.
* Revert "test: Run end.sh when running integration tests with mkosi"Luca Boccassi2024-06-033-2/+1
| | | | | | | | | | | | | It seems this introduced a regression in the CentOS CI; 14:25:58 FAILED TASKS:14:25:58 ------------- 14:25:58 TEST-03-JOBS 14:25:58 TEST-52-HONORFIRSTSHUTDOWN 14:25:58 TEST-63-PATH Revert for now. This reverts commit da3c6fc55363af2163b4d2613c9951bdaea24810.
* Merge pull request #33157 from DaanDeMeyer/endDaan De Meyer2024-06-024-5/+4
|\ | | | | test: Run end.sh when running integration tests with mkosi
| * test: Run end.sh when running integration tests with mkosiDaan De Meyer2024-06-023-1/+2
| |
| * TEST-16-EXTEND-TIMEOUT: Convert to oneshot serviceDaan De Meyer2024-06-021-4/+2
| | | | | | | | | | To match the other service units more and allow adding more ExecStart= lines via dropins.
* | test: exit earlier when cgroup user xattr is not supportedYu Watanabe2024-06-011-38/+46
| | | | | | | | Also, use trap for cleaning up the test environment.
* | test: reduce number of 'systemctl daemon-reload' a bitYu Watanabe2024-06-011-2/+9
| |
* | test: sync journal in short-living servicesYu Watanabe2024-06-016-10/+19
| | | | | | | | | | | | This also adjusts LogLevelMax=. Hopefully, this makes the test much stabler.
* | test-network: add missing sleep()Yu Watanabe2024-06-011-0/+1
|/ | | | | | Fixes a bug introduced by 7ef26afca555a5e167ebc59514490906a46db2cb. Fixes #33098.
* Merge pull request #33105 from DaanDeMeyer/sanitizersDaan De Meyer2024-05-313-10/+4
|\ | | | | Sanitizers
| * TEST-21-DFUZZER: Stop marking as slowDaan De Meyer2024-05-312-10/+0
| | | | | | | | | | | | This was a workaround to not run TEST-21-DFUZZER without sanitizers. Now that we're going to get sanitizer support, let's run it by default again.
| * TEST-69-SHUTDOWN: Order after systemd-user-sessions.serviceDaan De Meyer2024-05-311-0/+4
| | | | | | | | | | Make sure that we're allowed to login by ordering ourselves after systemd-user-sessions.service.
* | Merge pull request #33121 from yuwata/test-integration-tests-mkosiDaan De Meyer2024-05-315-11/+16
|\ \ | |/ |/| Test: several integration test improvements
| * test: optionally allow to disable user service manager, and disable it on ↵Yu Watanabe2024-05-313-5/+9
| | | | | | | | | | | | | | TEST-64 The test triggers many uevents, and running both system and user service managers make the test slow.
| * test: make it sure that devices are processed by udevd before running subtestsYu Watanabe2024-05-311-0/+1
| |
| * test: lock device on sfdisk or mkfs, and extend timeoutYu Watanabe2024-05-311-6/+6
| | | | | | | | Hopefully fixes #33111.
* | networkd-test: first wait for interface being configuredYu Watanabe2024-05-311-7/+9
|/ | | | DNS setting propagation to resolved may take some time.
* Merge pull request #33081 from keszybz/networkctl-formattingLuca Boccassi2024-05-301-3/+3
|\ | | | | Fix formatting of speeds in networkctl
| * shared/format-table: do not print '.0'Zbigniew Jędrzejewski-Szmek2024-05-301-3/+3
| | | | | | | | | | | | | | | | | | This makes output a bit shorter and nicer. For us, shorter output is generally better. Also, drop unnecessary UINT64_C macros. The left operand is always uint64_t, and C upcasting rules mean that it doesn't matter if the right operand is narrower or signed, the operation is always done on the wider unsigned type.
* | test-network: Add dirs_exist_ok=True to cp_r()Daan De Meyer2024-05-301-1/+1
| | | | | | | | Let's not fail if directories already exist in cp_r().
* | test-execute: Load systemd-asan-env environment file if availableDaan De Meyer2024-05-307-0/+7
| | | | | | | | | | | | | | When DynamicUser= is enabled, we need LD_PRELOAD to be configured correctly as the tests will load systemd's nss module which will complain when built with sanitizers if the sanitizer libraries were not loaded first.
* | TEST-02-UNITTESTS: Pass asan environment to units if it is availableDaan De Meyer2024-05-301-1/+7
| | | | | | | | | | Some tests (e.g. test-udev.py) might trigger one of our NSS modules which means LD_PRELOAD has to be configured properly.
* | TEST-79-MEMPRESS: Load systemd-asan-env if availableDaan De Meyer2024-05-301-1/+11
| | | | | | | | Required since we run with DynamicUser=1.
* | TEST-36-NUMAPOLICY: Skip when running with sanitizersDaan De Meyer2024-05-301-0/+5
| | | | | | | | | | | | The test does not work under sanitizers as strace is used. Until the test is fixed to not use strace let's skip it when running with sanitizers.
* | TEST-02-UNITTESTS: Fix exit code checksDaan De Meyer2024-05-301-8/+8
| |
* | TEST-05-RLIMITS: Bump memory limitsDaan De Meyer2024-05-301-16/+16
| | | | | | | | | | When running with sanitizers we need more memory otherwise the unit gets OOM killed.
* | test: Use virtio-scsi for keydev driveDaan De Meyer2024-05-291-1/+2
| | | | | | | | | | Otherwise qemu defaults to ide for which the module isn't always available (e.g. it's missing in the debian linux cloud images).
* | TEST-64-UDEV-STORAGE: Replace megasas2 controller with virtio scsi controllerDaan De Meyer2024-05-295-21/+10
| | | | | | | | | | | | | | The virtio-scsi driver is available in the KVM/cloud kernel packages provided by distributions whereas the megasas2 driver is not. Let's switch to virtio-scsi so we can switch back to the KVM/cloud kernel packages.
* | mkosi: Run integration tests as rootDaan De Meyer2024-05-291-0/+1
| | | | | | | | | | This allows running integration tests that support it in nspawn instead of qemu. This both gives extra coverage and speeds things up.
* | test: Run tests that don't need a vm in systemd-nspawnDaan De Meyer2024-05-2925-2/+31
|/ | | | | If we're not running the test as root, stick to using a virtual machine, as mkosi can't do rootless nspawn yet.
* Merge pull request #32562 from Werkov/test-cgroup-opensuseDaan De Meyer2024-05-292-8/+1
|\ | | | | Revert "TEST-19-CGROUP: Skip on opensuse"
| * Revert "TEST-19-CGROUP: Skip on opensuse"Michal Koutný2024-05-231-8/+0
| | | | | | | | | | | | | | | | | | | | This reverts commit 60d064d3fdfc21d9209d81ed8b29fe0d90891ebf. The logged test failure was because of missing memory controller in testing cgroup. With the test fixed in previous commit, memory attributes are delegated as expected. Ref: #32439
| * test: Ensure delegation test unit has memory controllerMichal Koutný2024-05-231-0/+1
| | | | | | | | | | | | | | | | | | | | When the test used to be run on distro that doesn't enable memory accounting by default (such as openSUSE TW), there is no guarantee that testing unit has memory.* cgroup attributes and delegation test would fail if they are missing. Require memory controller explicitly inside the unit so that test can work in any environment.
* | test-network: update comment about status of kernel regressionYu Watanabe2024-05-291-3/+2
| |
* | test-network: tun/tap fd may be owned by tentative worker processesYu Watanabe2024-05-281-59/+51
| | | | | | | | | | | | | | | | | | | | | | PID1 may invoke a helper process, e.g. sd-close, during the test. So, processes other than networkd and PID1 may be shown. ``` testtap99: tap pi multi_queue vnet_hdr persist filter Attached to processes:systemd-network(2852)(sd-close)(2863)systemd(1) ``` Closes #33055.
* | Merge pull request #33063 from keszybz/wiki-linksLuca Boccassi2024-05-284-6/+6
|\ \ | | | | | | Update wiki links
| * | man: update links to "API File Systems"Zbigniew Jędrzejewski-Szmek2024-05-281-1/+1
| | |
| * | various: update links to more wiki pagesZbigniew Jędrzejewski-Szmek2024-05-282-4/+4
| | |
| * | man: update links to catalog docsZbigniew Jędrzejewski-Szmek2024-05-281-1/+1
| | |
* | | test: lock device when sfdisk or mkfsYu Watanabe2024-05-281-7/+20
|/ / | | | | | | | | | | Or, trigger devices after the command incase the device is dm or md. Fixes #33056.
* | test: suppress logs generated by journal testsYu Watanabe2024-05-281-1/+11
| | | | | | | | | | | | Note, journal_file_dump() is only used by tests. Closes #33035.
* | test: wait for the kernel finishes to attach backing file to loop deviceYu Watanabe2024-05-281-1/+6
| | | | | | | | Fixes #32680.
* | Merge pull request #33038 from DaanDeMeyer/mkosiDaan De Meyer2024-05-273-143/+208
|\ \ | | | | | | Various integration test improvents
| * | test: Extend meson + mkosi integration test docsDaan De Meyer2024-05-271-41/+63
| | | | | | | | | | | | | | | Let's also put the meson + mkosi docs first to nudge readers towards it instead of the old fashioned way to run the integration tests.