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

Re: Java packages and autopkgtest

On Sun, 6 Dec 2020, Roger Shimizu wrote:

> I think dh_auto_configure prepares the environment, and real test is
> performed by dh_auto_test.

I think so, you think so, ok, let’s check.

	sub test {
		my $this=shift;
		if (!@_) {
			push(@_, "test");
		$this->doit_in_builddir(@{$this->{maven_cmd}}, @_);

Yes, it does “mvn test”.

> If the package is java library, the test is sufficient for autopkgtest.

This “test” is *absolutely n̲o̲t̲* qualifying as autopkgtest
because autopkgtests are all about *as-installed* package
testing, and “mvn test” will locally rebuild then test that.

Packages using this are buggy. Unsure about the severity,
probably not rc.

We probably should let maven-debian-helper’s dh module
abort any building (dh_auto_{build,test}) if run under
autopkgtests to enforce this.

tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg


Mit unserem Consulting bieten wir Unternehmen maßgeschneiderte Angebote in
Form von Beratung, Trainings sowie Workshops in den Bereichen
Softwaretechnologie, IT Strategie und Architektur, Innovation und Umsetzung
sowie Agile Organisation.

Besuchen Sie uns auf https://www.tarent.de/consulting .
Wir freuen uns auf Ihren Kontakt.


Reply to: