summaryrefslogtreecommitdiffstats
path: root/tests/bfs
Commit message (Collapse)AuthorAgeFilesLines
* tests: Move closed_std* tests out of the POSIX groupTavian Barnes2023-10-144-0/+28
| | | | | | | | | | | | | POSIX actually says > If the utility would be executed with file descriptor 0, 1, or 2 > closed, implementations may execute the utility with the file > descriptor open to an unspecified file. So we're not guaranteed to be able to detect the situation in the first place. Add a best-effort check for these platforms and skip the test. Link: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01_01
* tests/bfs/status: Try to test SIGWINCHTavian Barnes2023-10-061-1/+1
|
* tests: New bfs_pty wrapper for unbufferTavian Barnes2023-10-063-7/+3
|
* tests/bfs: Add a test that runs -statusTavian Barnes2023-10-051-0/+3
|
* tests/bfs: Add tests for color autodetectionTavian Barnes2023-10-054-0/+65
|
* color: Only highlight the trailing slash on ENOTDIRTavian Barnes2023-07-132-5/+5
|
* color: Don't break up leading and trailing dirsTavian Barnes2023-07-1339-61/+63
|
* color: TTY-escape filenamesTavian Barnes2023-07-1338-0/+76
|
* color: Get rid of EXT_MAXTavian Barnes2023-07-132-0/+23
|
* parse: Reject -j0Tavian Barnes2023-07-121-0/+1
|
* tests/bfs: Add tests for -jTavian Barnes2023-07-125-0/+41
|
* color: Compare values too when deciding to smart-caseTavian Barnes2023-06-302-2/+7
|
* color: Implement smart casingTavian Barnes2023-06-295-10/+12
| | | | | | | | | Since coreutils 9.2, ls does case-sensitive extension matching if the same extension is capitalized differently in $LS_COLORS. Implement the same logic. Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33123 Link: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=9086
* tests/bfs/color: Add mixed-case extensionsTavian Barnes2023-06-2938-114/+304
|
* color: `fi=0` should not fall back to `no`Tavian Barnes2023-06-088-0/+84
|
* tests: Use bfs_sudo wrapper instead of testing $SUDOTavian Barnes2022-12-292-4/+2
|
* tests/bfs/printf_everything: Simplify double negationTavian Barnes2022-12-161-2/+2
|
* tests: Fail early in bfs_diff if the diff failsTavian Barnes2022-12-161-1/+1
| | | | Otherwise, propagate the exit code from bfs
* tests: Print the skip reason for --verbose=skippedTavian Barnes2022-12-161-4/+1
|
* tests: Turn on set -eTavian Barnes2022-12-164-12/+9
|
* tests: Move crash detection into invoke_bfs, use ! instead of failTavian Barnes2022-12-1631-32/+32
|
* tests: Replace skip_unless test with test || skipTavian Barnes2022-12-167-11/+11
|
* parse: Fix crash on -xdev -mountTavian Barnes2022-11-302-0/+21
|
* parse: Pass the right argument when warning about -O9Tavian Barnes2022-11-302-0/+22
|
* typo: Array bounds are exclusive, not inclusiveTavian Barnes2022-11-101-0/+1
|
* tests/xtouch: New utilityTavian Barnes2022-11-073-3/+3
| | | | | | 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: Skip fstype tests if the mtab isn't availableTavian Barnes2022-11-061-1/+7
|
* 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-199-0/+70
|
* tests: Split test cases into separate filesTavian Barnes2022-10-19190-0/+1359