Execute check manually after dpkg-buildpackage DEB_BUILD_OPTIONS=nocheck

1.1k Views Asked by At

I am running dpkg-buildpackage with the environment variable DEB_BUILD_OPTIONS set to nocheck. This compiles but skips the testing. With which command can I execute the checking manually after dpkg-buildpackage has completed?

1

There are 1 best solutions below

2
mestia On BEST ANSWER

It is all defined in debian/rules You should probably look for an upstream tests or for the content of debian/tests if present.

So basically the DEB_BUILD_OPTIONS is just an environment variable and it's up to the maintainer of d/rules how to handle it. dpkg-buildpackage doesn't care about it, it is just the makefile - debian/rules which has some code checking for this var.

For example:

override_dh_auto_test:
    ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
    dh_auto_test --no-parallel
endif

The official docs: https://www.debian.org/doc/debian-policy/ch-source.html#s-debianrules-options