Bug#994748: dh_elpa_test: support running only autopkgtests
Package: dh-elpa
Version: 2.0.9
Severity: wishlist
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
As far as I can tell, overriding dh_auto_test does not stop running
the tests at build time; presumably that's why we support the
"disable" key in d/elpa-test. On the other hand setting that key
disables running the tests in autopkgtest. Currently it silently
makes the autopkgtests succeed.
I think it would be valuable to have a setting that only disables the
tests at build time, and perhaps symmetrically only at autopkgtest
time. A potential interface is
disable = true|yes|1|both (disable both, current behaviour)
disable = build (disable tests at build time)
disable = autopkgtest (disable tests at autopkgtest)
If I've understood the current code correctly, this is just a matter
of changing the test around line 218 of dh_elpa_test to check the
value of the "disable" key, and updating the documentation.
It might be a good idea if disabled autopkgtests automatically marked
them as superficial; I don't know how hard this would be to implement.
- -- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dh-elpa depends on:
ii debhelper 13.5.1
ii dh-make-perl 0.116
ii emacs 1:27.1+1-3.1
ii emacs-gtk [emacs] 1:27.1+1-3.1
ii libarray-utils-perl 0.5-1.1
ii libconfig-tiny-perl 2.26-1
ii libdebian-source-perl 0.116
ii libdpkg-perl 1.20.9
ii libfile-find-rule-perl 0.34-1
ii libtext-glob-perl 0.11-1
ii perl 5.32.1-5
dh-elpa recommends no packages.
dh-elpa suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEEkiyHYXwaY0SiY6fqA0U5G1WqFSEFAmFIhq8ACgkQA0U5G1Wq
FSG9jA/9F+nlkx6oNv3YxrA7oFmdM1gi7zRrONJcQeKIjZKy2MaRnPu7lX8nYEf2
ZyUxuO2yYUSmLCIYQABXm2rp6+5KgLa7Sw813kfVUmWiBw3+vGaNqsgqXfbaxe4L
zsCkfh7cqPQAGAnwLwxGudhQ638++U3BzgDn7QWq6/ars6qOujLi7GdUhYYjJQhy
QhnrUui3Fo/qByvN236mjC772rb5D7pDtaanwHNrtvucvWDqyLNkwlxC2zK2nVvp
XOHbkQxvHgafnJN+O8Ndwq5XM/U+XL1NEK7EicYP4TrteGBN/lijZvrgWlaPQZ82
Jh0+WInIc6D+bd2iwwXoQRXlJPPsHid8UYsBoppJJzKICuNH/1J6lHD/037ah0O1
jl1DeITQEoIeog05+WJ2H4L5MwHbSxyIR8ic01xwjir8G5GXiGvhvot0G1tQDh05
kBJ7cPNRZvRnQtCV91IAjuN0dhbTckrFfnnr9yemm+Hxd3nziWkMq98J06qlic7j
RgrumZerHI532QwA0Wu9xbs7ZiJgCKSNR3TEEt/g/iQgjVUtYMQ8p+TbeyGEyrJQ
mEs97dfHO38clUCq7B90k1Czl3gHoVq7TBgcV1pSJe6Dkw6ZDxHhV9qfBkawN9WY
Ga5BcMRsQqs3IfxAs+vhKtHj7U9IubN1LUWxPyhZ5SD+mFPkz/s=
=KMqu
-----END PGP SIGNATURE-----
Reply to: