Re: Java packages and autopkgtest
On Sun, Dec 6, 2020 at 3:45 AM Thorsten Glaser <t.glaser@tarent.de> wrote:
>
> 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.
Yes, so my script doesn't include "dh_auto_build".
It only tests the installed package built by buildd, so it depends on "@".
Anyway, the test code needs to be built.
Cheers,
--
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1
Reply to: