]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
dpkg: add ptest support
authorGyorgy Sarvari <skandigraun@gmail.com>
Thu, 7 Aug 2025 20:13:50 +0000 (22:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Aug 2025 17:03:13 +0000 (18:03 +0100)
commit02ed7fad85463840c46b6c0fa0ac9decef77c503
tree7ed6d867f87323b1ce182310a95193b02c8e1e42
parent6067498b14ca5d90640169384e51aa9cf5c1b8e2
dpkg: add ptest support

Added it to slow tests, as it takes betwen 165 and 190 seconds on my
machine to execute (qemux86-64 + kvm).

The test folder's Makefile contains a list of passing, failing and manual
tests. By default, only the expected-to-pass tests are executed by the
Makefile (unless magic environment variable is set).

The run-ptest script mimics the default behavior of executing the
expected-to-pass tests, however they are executed one by one, instead of
running them as one batch - that way it is easier to determine exactly
which tests pass and which fail.

One other thing that might worth a note, is that the tests folder that needs to be
installed contains a number of subfolders called "DEBIAN". When packaging them
at least with rpm, these folders are omitted from the package.
However these are essential for the tests, as they contain test data. As a
workaround, these folders are renamed during installation to DEBIAN-ptest,
and before execution the run-ptest script restores their names.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/conf/distro/include/ptest-packagelists.inc
meta/recipes-devtools/dpkg/dpkg.inc
meta/recipes-devtools/dpkg/dpkg/run-ptest [new file with mode: 0644]
meta/recipes-devtools/dpkg/dpkg_1.22.21.bb