wpkg --run-unit-tests ...

The --run-unit-tests option is used when requesting the --build command to generate binary packages from a source package:

wpkg --run-unit-tests --build package-src_1.2.3.deb

It is expected that all the source packages created with wpkg include a run_unit_tests target. This target is called with a command such as:

make run_unit_tests

and if that command returns an error, it is viewed as the unit tests failed and the build fails.

This is particularly useful when building a large number of packages for a system (such as the usys environment) to make sure that everything is working even after you made modifications to some packages.

Syndicate content