summaryrefslogtreecommitdiffstats
path: root/tests/bsd
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add directories with different permissions to perms/Tavian Barnes2024-06-043-17/+22
|
* parse: Handle multiple flags at once like -LEXO2Tavian Barnes2024-06-032-0/+2
| | | | | | | | | | | | | | | | | | | | | The POSIX Utility Syntax Guidelines specify that flag groups like -HL should be handled like -H -L. GNU find doesn't support grouping flags in this way, but BSD find does. To avoid conflicts with non-flag primaries, for now we require at least one flag in a group to be a capital letter. That is, we support things like -Lds but not -ds. We also do not support -fPATH (without a space) as it would conflict with -follow, -fprint, etc. It is impossible to be compatible with both GNU and BSD find here: user@gnu$ find -follow link link/file ... user@bsd$ find -follow find: ollow: No such file or directory Link: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html
* tests: Add some more weird namesTavian Barnes2024-05-283-0/+16
|
* tests/bsd: Add a -sparse testTavian Barnes2024-03-282-0/+13
|
* bftw: Actually stop if the callback returns BFTW_STOPTavian Barnes2024-01-312-0/+5
| | | | | | Otherwise, bftw_ids() or bftw_eds() might keep going! Fixes: 5f16169 ("bftw: Share the bftw_state between iterations of ids/eds")
* tests/bsd/type_w: Check for truncate(1) before using itTavian Barnes2024-01-031-1/+5
|
* tests/bfs/help: Use ... && fail instead of ! ...Tavian Barnes2023-10-231-1/+0
| | | | ! false doesn't trigger an error with set -e.
* tests: Use test-specific scratch directoriesTavian Barnes2023-10-2218-104/+98
|
* tests: New defer functionTavian Barnes2023-10-191-16/+4
|
* parse: Set BFTW_WHITEOUTS when parsing -type wTavian Barnes2023-10-172-0/+102
|
* tests: Fail early in bfs_diff if the diff failsTavian Barnes2022-12-161-1/+1
| | | | Otherwise, propagate the exit code from bfs
* tests: Turn on set -eTavian Barnes2022-12-162-10/+3
|
* tests: Move crash detection into invoke_bfs, use ! instead of failTavian Barnes2022-12-163-3/+3
|
* tests: Replace skip_unless test with test || skipTavian Barnes2022-12-167-14/+14
|
* tests/xtouch: New utilityTavian Barnes2022-11-074-4/+4
| | | | | | POSIX touch(1) doesn't include the -h option, and indeed OpenBSD doesn't implement it. Making our own utility also lets us add some handy extensions like -p (create parents) and -M (set permissions).
* tests: Add a helper for cleaning scratchTavian Barnes2022-10-204-4/+4
| | | | And try to unmount things if the a test left them mounted.
* tests: Coverage number go upTavian Barnes2022-10-193-0/+4
|
* tests: Split test cases into separate filesTavian Barnes2022-10-1976-0/+381