macOS doesn't have a 'root' group (it uses 'wheel' instead), which we can work around by using 'sys', since that happens to have the same gid on Linux and BSD. (Android doesn't have a 'sys' group, but I can fix that and give it the same number myself -- we already have similar hacks for Linux Test Project tests -- and this seems like the only way out of our current situation that doesn't require abandoning the "sha" style of test we have here.)
macOS uses a different device for /dev/null, so work around that too. I don't have a good workaround for macOS' weird sparse file behavior (not least because I still haven't understood what it does/doesn't support), so I've just disabled all sparse tests for now. I fixed some of the symlink tests (where macOS has group r-x and Linux group rwx) where we're just doing text comparisons, but I've just skipped the "sha" style tests that use symlinks for now. With this change, there are no test failures for me on macOS 12.5 or on current-ish debian. --- tests/tar.test | 101 ++++++++++++++++++++++++++++--------------------- 1 file changed, 58 insertions(+), 43 deletions(-)
0001-tests.tar-fix-tests-for-macOS.patch
Description: Binary data
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
