Bruno Haible wrote:
>> I want to use something like this for each of the tests I own ...
>> ...
>> I'll post some examples of using this new framework later today.
>
> One of the most important aspects of unit tests is that users are able to
> 1. execute a single test, rather than all tests,
> 2. single step through the test. Since we have no debugger for shell
> scripts, this means the ability to copy&paste line by line.
>
> This is still possible to do with your test framework, but not 100% obvious.
> Therefore IMO it requires some documentation.
>
> Here is a proposed patch. While at it, I also mentioned the trick with
> VERBOSE=yes. Again, not immediate, because in other packages one uses
> VERBOSE=1.
Thanks! Pushed.
> + # Running a single test, with verbose output:
> + # $ export VERBOSE=yes
> + # $ make check TESTS=test-foo.sh
I tweaked this to put it all on one line:
# $ make check TESTS=test-foo.sh VERBOSE=yes