How to print test log in case of failures?

Gianfranco Costamagna locutusofborg at debian.org
Mon Jan 22 11:34:41 UTC 2018


Hello, I'm trying to sort out an armhf alignment issue
that happens with haskell-th-utilities in Ubuntu
(but I'm pretty sure this isn't an Ubuntu-specific issue, reason
for Ubuntu to fail is probably because stuff is run on top of an arm64
kernel).

Test suite logged to: dist-ghc/test/th-utilities-0.2.0.1-test.log
0 of 1 test suites (0 of 1 test cases) passed.
/usr/share/cdbs/1/class/hlibrary.mk:154: recipe for target 'check-ghc-stamp' failed
make: *** [check-ghc-stamp] Error 1

this is what is printed.

Now, how can we print that file in case of failures?
I tried an override_dh_auto_test but it seems to be a cdbs packaging, and I don't know
if haskell helpers have some "hooks" to intercept failures
(it would be even better to patch the build system to automatically print the content
of the testsuite log in case of failures BTW)

If you are interested, this is the log
https://launchpad.net/ubuntu/+source/haskell-th-utilities/0.2.0.1-1build1/+build/13678151

Any help is appreciated :)

(I'm ccing James, since he knows a lot on this aligment/topic :) )

thanks!

G.



More information about the Pkg-haskell-maintainers mailing list