summaryrefslogtreecommitdiffstats
path: root/test/testsuite-04.units (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: Rename testsuite-XX units to match test nameDaan De Meyer2024-05-145-40/+0
| | | | | | | 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.
* TEST-04-JOURNAL: Make more robustDaan De Meyer2024-05-061-1/+6
| | | | | | 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-04-JOURNAL: Make LogFilterPatterns= tests more robustDaan De Meyer2024-04-302-2/+3
| | | | | | | Let's use oneshot services as we don't need long running services for the tests we're doing. Let's also increase the sleeps a little as the current values weren't sufficient when running the test locally on my machine with mkosi.
* journalctl: add --exclude-identifier optionSergei Zhmylev2024-01-041-0/+6
|
* test: add space-separated test for LogFilterPatternsLuca Boccassi2023-10-121-1/+1
|
* test: clean up the test script even furtherFrantisek Sumsal2023-05-031-1/+1
| | | | | | | Most notably: - use `systemd-id128 new` instead of `journalctl --new-id128` - move all temporary files to /tmp - wrap repetitive checks in a function
* journald: fix ignored filtering patterns for delegated cgroupsQuentin Deslandes2023-02-081-0/+8
| | | | | | | | If a service defines Delegate=yes, its subcgroup won't inherit the LogFilterPatterns= option, because the option is stored on the unit's cgroup attributes, not on the subcgroup. Fixed by using the unit's cgroup attributes instead.
* test: use notice log level to make easily filter out logs from PID1Yu Watanabe2023-02-061-0/+1
|
* journal: add integration tests for log filteringQuentin Deslandes2022-12-151-0/+5
| | | | Add integration tests for journald's log filtering feature.
* tests: add spdx license header to test unit/link/network/conf filesZbigniew Jędrzejewski-Szmek2021-10-182-0/+2
| | | | | | | | Those are all consumed by our parser, so they all support comments. I was considering whether they should have a license header at all, but in the end I decided to add it because those files are often created by copying parts of real unit files. And if the real ones have a license, then those might as well. It's easier to add it than to make an exception.
* core: apply LogLevelMax to messages about unitsRyan Hendrickson2021-05-031-0/+6
| | | | | | | | | | This commit applies the filtering imposed by LogLevelMax on a unit's processes to messages logged by PID1 about the unit as well. The target use case for this feature is a service that runs on a timer many times an hour, where the system administrator decides that writing a generic success message to the journal every few minutes or seconds adds no diagnostic value and isn't worth the clutter or disk I/O.
* tests: replace the few remaining Type=simple with Type=execZbigniew Jędrzejewski-Szmek2020-10-221-1/+1
| | | | | Except for the places where we explicitly want to test Type=simple, we should use Type=exec.
* test: convert TEST-04-JOURNAL to generic imageZbigniew Jędrzejewski-Szmek2020-03-281-0/+6