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

Bug#1061151: asymptote: should run tests at build time



On 2024-01-19 17:11 +0100, Sven Joachim wrote:

> Source: asymptote
> Version: 2.86+ds1-1
>
> Your package has a test suite that probably should be run at build time,
> but it is not.  I looked at the git repository and found that it has
> been disabled since at least 2015:
>
> ,----
> | $ git show f69991bf3
> | commit f69991bf3cf85c0560ac93a2b24d96ce67c061d9
> | Author: Norbert Preining <norbert@preining.info>
> | Date:   Tue Jun 23 08:41:59 2015 +0900
> |
> |     do not do testing
> |
> | diff --git a/debian/rules b/debian/rules
> | index 6d9d7387..2d52d8f6 100755
> | --- a/debian/rules
> | +++ b/debian/rules
> | @@ -22,6 +22,9 @@ override_dh_auto_install:
> |         make install-asy DESTDIR=$(CURDIR)/debian/tmp
> |         dh_installtex -pasymptote
> |
> | +override_dh_auto_test:
> | +       : do nothing here, otherwise make tries to compile prc/test.cc
> | +
> |  override_dh_clean:
> |         dh_clean
> |         rm --force doc/latexusage.pdf doc/latexusage.dvi doc/TeXShopAndAsymptote.dvi doc/CAD.dvi
> `----
>
> This leaves me rather puzzled: why exactly would it bad if make tries to
> compile prc/test.cc?

Out of curiosity, I removed the dh_auto_test override and built the
package with "sbuild --no-arch-all".  This ran the test suite where
various files were compiled, but not prc/test.cc.  The build was
successful.

This was on amd64, and I have not tested binary-indep or full builds.
You may want to upload to experimental first to see how other
architectures work.

Cheers,
       Sven


Reply to: