summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2019-05-09tests: Add some more --sudo testsTavian Barnes
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912180#17 pointed out that d_ino is not trustworthy on mount points either. Make sure we don't use it.
2019-05-05color: Don't stat() if we don't need toTavian Barnes
2019-05-04tests: Add missing expectation fileTavian Barnes
2019-05-04bftw: Add a caching stat() API to struct BFTWTavian Barnes
2019-04-24tests: Add some tests that require sudoTavian Barnes
2019-04-21parse: Allow things like -uid ++10Tavian Barnes
GNU find does too.
2019-04-20tests: Don't test symlink permissionsTavian Barnes
They're different between platforms.
2019-04-20tests: Add a test with -printf %H and multiple rootsTavian Barnes
To make sure we're keeping track of different root paths correctly
2019-03-28tests: Fix color NUL byte test on platforms where sort expects textTavian Barnes
2019-03-28color: Implement ln=targetTavian Barnes
With ln=target in LS_COLORS, links should be colored according to their target's stat() info, not their own.
2019-03-28color: Implement escape sequence parsingTavian Barnes
GNU ls allows custom escape sequences inside color values, including control characters and embedded NULs.
2019-03-21opt: Optimize redundant comma expressionsTavian Barnes
2019-03-20opt: Replace -a -false/-o -true with -not when possibleTavian Barnes
2019-03-19tests: Add utilities for comparing colors to lsTavian Barnes
2019-03-17tests: Use archive extensions for color testsTavian Barnes
2019-03-17color: Match the behaviour of GNU ls more closelyTavian Barnes
2019-03-07tests: Add a test for extension overridesTavian Barnes
2019-03-07eval: Fix -unique with -depthTavian Barnes
2019-03-01Implement -uniqueTavian Barnes
Closes #48
2019-02-18tests: Add a test for symlink coloring to a deviceTavian Barnes
2019-02-07tests: Add tests for -no{group,user} under fd pressureTavian Barnes
2019-02-01tests: New utility for making and testing socket filesTavian Barnes
2019-02-01main: Fix closed standard stream handlingTavian Barnes
bfs >&- should complain about a missing file descriptor, rather than silently succeeding.
2019-01-02color: Fix more incompatibilities with GNU lsTavian Barnes
2018-12-28tests: Fix test_exit() to not depend on breadth-first orderingTavian Barnes
2018-12-17color: Don't print the leading directory color if there's no leading directoryTavian Barnes
2018-11-14tests: Don't assume find continues after filesystem loopsTavian Barnes
POSIX says > When it detects an infinite loop, find shall write a diagnostic > message to standard error and shall either recover its position in the > hierarchy or terminate. So make the 'links' folder not have any loops, and add a new 'loops' folder for testing the GNU/bfs behaviour.
2018-11-01tests: Add testcases for -pruneTavian Barnes
2018-09-18spawn: New posix_spawn()-like API for execTavian Barnes
2018-08-18opt: Re-run optimizations after reordering expressionsTavian Barnes
This catches new data flow inferences that can be made after swapping the children of an expression.
2018-07-20tests: Add tests for mode 000Tavian Barnes
2018-07-20printf: Output ? for errors in %YTavian Barnes
2018-07-12eval: Fix -delete when following symlinks.Tavian Barnes
Same bug as https://savannah.gnu.org/bugs/?46305. Please don't ever do this though.
2018-07-07tests: Add some more tests for broken symlinksTavian Barnes
2018-06-24tests: Relax test_depth_errorTavian Barnes
Whether bfs can return children of a directory without search permission depends on whether d_type is filled in, which can't be guaranteed.
2018-06-23tests: New test for -depth in the presence of read errorsTavian Barnes
2018-01-20printf: Add %w and %Wk for file birth timesTavian Barnes
%w and %W were chosen to match the format specifiers for file birth times from stat(1)
2017-11-12exec: Recover from E2BIGTavian Barnes
2017-11-05parse: Support -perm +7777, for compatibility with BSD and old GNU findTavian Barnes
2017-10-21parse: Keep track of what files are already openTavian Barnes
Fixes #22
2017-09-17opt: Fix -depth with arguments bigger than INT_MAXTavian Barnes
2017-09-16tests: Add tests that trigger some optimizationsTavian Barnes
2017-09-07Revert "tests: Test hardlinks to symlinks"Tavian Barnes
Apparently macOS doesn't support ln -P. This reverts commit 80eec18020f531abbdb2abbb919ab6c6fa34107c.
2017-09-06parse: Don't reorder or remove tests with potential side effectsTavian Barnes
-empty and -xtype may have side effects like reporting permission errors, which even affect the exit status of bfs. We shouldn't remove these effects without -Ofast.
2017-09-06tests: Test hardlinks to symlinksTavian Barnes
2017-09-04tests: Make test_deep pass with other find implementationsTavian Barnes
And move test_deep_strict to the bfs-specific tests, since it's not likely to ever pass for other implementations.
2017-09-02tests: Use human-readable filenames in links/Tavian Barnes
2017-08-16tests: Remove unnecessary sort-args.sh invocationsTavian Barnes
2017-08-12Unify broken symlink handlingTavian Barnes
Rather than open-code the fallback logic for broken symlinks everywhere it's needed, introduce a new xfstatat() utility function that performs the fallback automatically. Using xfstatat() consistently fixes a few bugs, including cases where broken symlinks are given as arguments to predicates like -samefile.
2017-08-12tests: Add a test for -exec ... {} + with a failing commandTavian Barnes