[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests/init.sh: new file to be used via most *.sh tests
From: |
Jim Meyering |
Subject: |
Re: [PATCH] tests/init.sh: new file to be used via most *.sh tests |
Date: |
Thu, 26 Nov 2009 09:41:23 +0100 |
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
Re: [PATCH] tests/init.sh: new file to be used via most *.sh tests,
Jim Meyering <=
Re: [PATCH] tests/init.sh: new file to be used via most *.sh tests, Ralf Wildenhues, 2009/11/27