[Toybox] tar test failures

Rob Landley rob at landley.net
Fri Oct 2 21:47:24 PDT 2020


On 10/2/20 4:13 PM, enh via Toybox wrote:
> bonus question: why didn't the toybox CI catch this? looks like the tar tests
> aren't being run there for some reason, despite the `make
> defconfig`? https://github.com/landley/toybox/runs/1196859091
> 
> ah, it's the "missing execute permission on the .test file" issue again. isn't
> that a bug for everything not in pending?

Yes and no. I was using +x to indicate the test itself is essentially in
pending, and a lot of TESTS need work even when the command itself has been
promoted. For example, tar.tests has a big "if false" block at the end with a
bunch of TODO comments on tests I should add, but haven't yet.

That said, at this point I need to do a full pass over all the tests again, it
looks like I've commited other people's patches that changed permissions for
tests that aren't remotely complete. (Maybe someday somebody will want to
sponsor me putting time into the test suite, until then it's a todo item for
somewhere post-1.0. Right now I'm trying to get a release out before I fly to
Japan on the 14th, at which point I probably ignore this project entirely for a
few months because I expect to be busy with paying work.)

Anyway, the tests that aren't +x even though their commands aren't in pending are:

for i in $(ls -l tests/*.test | grep  '[-] ' | sed 's at .*tests/@@;s/[.]test//');
do echo toys/*/$i.c; done | grep -v pending

And I guess I can just chmod +x all of the ones that pass their tests and go
"test_kill has two tests, and that's it for the foreseeable future I guess, oh
well, I no longer have an obvious way to track what needs work"...

Rob



More information about the Toybox mailing list