Bug#998358: Subject: grepmail: autopkgtest doesn't do anything

2021-11-02 Thread Paul Gevers
Source: grepmail
X-Debbugs-Cc: mar...@talau.info, eribe...@debian.org
Version: 5.3104-1
Severity: serious
Justification: RC policy

Dear Marcos, Joao,

I appreciate your attention to the orphaned package grepmail and the
fact that you try to save it from removal from testing, but in the
process you added and autopkgtest that doesn't do anything at all.

I played around with it a tiny bit, and the reason it doesn't run
anything is because dh_auto_test doesn't detect a known framework. Why
dh_auto_test works during building is that during build a Makefile is
generated in one of the steps before testing and dh_auto_test executes
the test target in that. For this to work, the autopkgtest at least
needs more of the Build-Depends, otherwise the test fails. I ran the
following manually in the testbed after checking what code
was actually run during the test on the buildd and it currently fails
all tests:

PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM"
"-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1,
'inc', 'blib/lib', 'blib/arch')" t/*.t

Before fixing this, please ensure you're testing the as-installed
binary instead of the code in the source tree, as the intention of
autopkgtest is to test the package, not the source, as I believe you're
not testing /usr/bin/grepmail

Paul

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



OpenPGP_signature
Description: OpenPGP digital signature


Bug#998358: Subject: grepmail: autopkgtest doesn't do anything

2021-11-02 Thread Eriberto
Thanks a lot Paul.

Really, in our machines the package is built and Makefile  exists. I
need to check some packages of mine. I think there are some tests
around grepmail in upstream source. However, don't worry because this
upload was a first work. Now, Marcos will package the new upstream
release and he will fix this mistake. In a final action, he will send
a SPU to fix a specific issue.

Regards,

Eriberto