[Toybox] test/test.test

Rob Landley rob at landley.net
Sat Dec 1 15:14:38 PST 2018


$ gcc pear.c
$ ./a.out | sed -e '1i#!/bin/bash' -e 's/.*/test & ; echo $?/' > blah.sh
$ chmod +x blah.sh
$ ./blah.sh  | wc

So... tests for test. With 5376 true/false results. Probably overkill? (This
tests parentheses vs -a and -o prioritization for all combinations of 3 -a/-o
tests and 4 pairs of parentheses. Dunno about "right" but I can check "matches
bash"...

Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pear.c
Type: text/x-csrc
Size: 803 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20181201/eba0965b/attachment-0002.c>


More information about the Toybox mailing list