]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
apt: add apt selftest to test signed package feeds
authorFerry Toth <ftoth@exalondelft.nl>
Wed, 13 Apr 2022 20:37:41 +0000 (22:37 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Apr 2022 13:14:01 +0000 (14:14 +0100)
commit3ec30490d09d6639eea2638cf12a323948f221cc
treefe61f18124952e20025efb3ed321729dd0e91a18
parent9c427fd674320253bb99f8885f1667398f59aba4
apt: add apt selftest to test signed package feeds

Since Gatesgarth apt (1.8.2) has become more strict and doesn’t allow unsigned repositories by default.
Currently when building images this requirement is worked around by using [allow-insecure=yes] and
equivalently when performing selftest.

Patches "gpg-sign: Add parameters to gpg signature function" and "package_manager: sign DEB package feeds"
enable signed DEB package feeds. This patch adds a runtime test for apt derived from the test_testimage_dnf
test. It creates a signed deb package feed, runs a qemu image to install the key and performs some package
management. To be able to install the key the gnupg package is added to the testimage.

Signed-off-by: Ferry Toth <ftoth@exalondelft.nl>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/apt.py
meta/lib/oeqa/selftest/cases/runtime_test.py