[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Automatically dumping test-suite.log on make check failure



On 8 May 2014 18:25, Emilio Pozuelo Monfort <pochu27@gmail.com> wrote:
> On 08/05/14 19:19, Dimitri John Ledkov wrote:
>> On 8 May 2014 18:10, Marcin Owsiany <porridge@debian.org> wrote:
>>> Does anyone know a way to make the automake-generated test suite scripts cat
>>> the test-suite.log to stderr on failure? It just reports which tests failed but
>>> hides the actual messages. This is most annoying on buildds which then promptly
>>> remove the whole build dir, and one has to then tediously find a porter box,
>>> set up schroot, fetch the package, install build-deps, run the build and then
>>> finally manually cat the log. Example:
>>
>> override_dh_auto_test:
>> ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
>>         dh_auto_build -- -k check || { RET=$$?; find . -name
>> "test-suite.log" -exec cat {} + ; exit $$RET;}
>> endif
>>
>
> Much easier:
>
> make check V=1
>

that only prints the failed tests, not all of them on failure?! I
wanted, well needed in that package, the full logs, on failure.

-- 
Regards,

Dimitri.


Reply to: