[Toybox] runtest.sh

Rob Landley rob at landley.net
Mon Dec 3 15:06:48 PST 2018



On 12/3/18 3:40 PM, enh via Toybox wrote:
> this commit:
> 
>   commit 01844db4fb92aa7ae6eb12b160f1978235a449d5
>   Author: Rob Landley <rob at landley.net>
>   Date:   Sun Dec 2 16:22:41 2018 -0600
> 
>       Merge runtest.sh into test.sh.
> 
> broke "run-tests-on-android.sh", which looks like this:

Ah, you're using it.

Ok, split back out again.

> if [ "$#" -eq 0 ]; then
>   # Run all the tests.
>   for t in tests/*.test; do
>     toy=`echo $t | sed 's|tests/||' | sed 's|\.test||'`
>     test_toy $toy
>   done

You saw I'm using the +x bit to indicate tests expected to pass with VERBOSE=fail...

> having the functions separate from the actual runner was useful for this...

Gotcha.

Rob



More information about the Toybox mailing list