tests: abuild: port and fix py provides generation

This commit is contained in:
Natanael Copa 2022-06-20 12:54:11 +02:00
parent ca29f73dfe
commit 30b493d4b2
1 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,8 @@ init_tests \
abuild_reproducible \
abuild_checksum_generation \
abuild_checksum_duplicates \
abuild_subpkg_dep_leak
abuild_subpkg_dep_leak \
abuild_py_providers_creation
export ABUILD_SHAREDIR=$(atf_get_srcdir)/..
export ABUILD_CONF=/dev/null
@ -299,3 +300,12 @@ abuild_subpkg_dep_leak_body() {
|| atf_fail "subpkg-dep-leak-subpkg should not depend on tar"
}
abuild_py_providers_creation_body() {
cp -ra "$testrepo" .
cd testrepo/py3-foo-and-bar
abuild rootpkg || atf_fail "abuild failed"
atf_check -s exit:0 \
-o match:"provides = py3.9:foo=1.0.0-r0" \
cat pkg/.control.py3-foo-and-bar/.PKGINFO
}