summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-22.11.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* TEST-22: add --dry-run callsZbigniew Jędrzejewski-Szmek2024-02-121-0/+90
| | | | | | aCdDefLprRwxXz are tested with --dry-run. I added a primitive test of bc. There were no tests for AhHt, and I didn't add those either.
* tmpfiles: use dir_cleanup() for R and DZbigniew Jędrzejewski-Szmek2024-02-091-5/+23
| | | | | | | | | | | | | | | | | | | | | | ... i.e. apply nested config (exclusions and such) when executing R and D. This fixes a long-standing RFE. The existing logic seems to have been an accident of implementation. After all, if somebody specifies a config with 'R /foo; x /tmp/bar', then probably the goal is to remove stuff from under /foo, but keep /tmp/bar. If they just wanted to nuke everything, then would not specify the second item. This also makes R and D use O_NOATIME, i.e. the access times of the directories that are accessed will not be changed by the cleanup. Obviously, we'll have to add this to NEWS and such. Looking at the whole tmpfiles.d config in Fedora, this change has no effect. The test cases are adjusted as appropriate. I also added another test case for 'R'/'D' with a file, just to test this code path more. Replaces #20641. Fixes #1633.
* tests: use !/usr/bin/env bash consistentlyZbigniew Jędrzejewski-Szmek2021-10-181-1/+1
| | | | | This adjustment was last done in f96bc66901ecbcf7ecb280d9442fd0cc92e67186, but it seems some files were missed and some were added later.
* tests: add spdx headers to scripts and MakefilesZbigniew Jędrzejewski-Szmek2021-10-181-1/+1
|
* TEST-22-TMPFILES: add reproducer for bug with XZbigniew Jędrzejewski-Szmek2021-04-081-0/+141