Package: debhelper
Version: 13.3.4
Severity: wishlist

By default cmake ctest silences all output from the tests.

https://cmake.org/cmake/help/latest/manual/ctest.1.html#options

For tests that take a long time, this could mean the build does not
produce output during the entire buildd output timeout period, which
means that the build could fail. When the terse option is not in the
DEB_BUILD_OPTIONS variable, please add --verbose to the ARGS variable
passed by dh_auto_test to the test target in cmake generated Makefiles.

I suggest that the parameter be added after the make test target, but
before any arguments passed to dh_auto_test, so options passed in
debian/rules override the options set by debhelper itself. Currently
the parallel option for make test is added after other options.

I am currently using this workaround:

   override_dh_auto_test:
        dh_auto_test -- ARGS+=--verbose

This results in these commands being run:

   dh_auto_test -- ARGS+=--verbose
        cd obj-x86_64-linux-gnu && make -j4 test ARGS\+=--verbose ARGS\+=-j4
   make[2]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
   Running tests...
   /usr/bin/ctest --force-new-ctest-process --verbose -j4
   
-- System Information:
Debian Release: 11.0
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 
'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 
'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

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

Versions of packages debhelper depends on:
ii  autotools-dev            20180224.1+nmu1
ii  dh-autoreconf            20
ii  dh-strip-nondeterminism  1.12.0-1
ii  dpkg                     1.20.9
ii  dpkg-dev                 1.20.9
ii  dwz                      0.14-1
ii  file                     1:5.39-3
ii  libdebhelper-perl        13.3.4
ii  libdpkg-perl             1.20.9
ii  man-db                   2.9.4-2
ii  perl                     5.32.1-5
ii  po-debconf               1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  2.202003

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to