summaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)Author
2019-09-11parse: Don't treat -mount differently from -xdev yetTavian Barnes
The new POSIX version with -mount isn't out yet, so there's no point in conforming to a non-existent document while breaking compatibility with GNU find, which hasn't changed yet either. But a warning is added for the future incompatibility. This patch can be reverted to re-enable the feature.
2019-09-11tests: Add -mount/-xdev tests with -LTavian Barnes
2019-09-05tests: Test more cases in test_color_lsTavian Barnes
2019-09-03color: Fix directory coloring when resolving symlinks at the rootTavian Barnes
2019-07-04Make -mount and -xdev do different thingsTavian Barnes
POSIX now says -mount should skip the whole mount point, while -xdev should only skip its descendents. C.f. http://austingroupbugs.net/view.php?id=1133 C.f. https://savannah.gnu.org/bugs/?42318 C.f. https://savannah.gnu.org/bugs/?54745
2019-06-28tests: Relax test_execdir_ulimit so that GNU find passesTavian Barnes
2019-06-27color: Fix a crash if LS_COLORS ends in *Tavian Barnes
2019-06-25bftw: Queue individual files in depth-first modeTavian Barnes
This makes the order be truly depth-first.
2019-05-24Implement -xattr predicateTavian Barnes
2019-05-24fsade: Refactor the POSIX.1e abstractionsTavian Barnes
Since we're going to want to abstract more things that aren't part of POSIX.1e (like xattrs) in a similar way, let's give this a more generic name. And while we're at it, give it some more precise error reporting, and add some tests.
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