mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-09 00:00:03 +00:00
tests: abuild: port and fix py provides generation
This commit is contained in:
parent
ca29f73dfe
commit
30b493d4b2
@ -14,7 +14,8 @@ init_tests \
|
|||||||
abuild_reproducible \
|
abuild_reproducible \
|
||||||
abuild_checksum_generation \
|
abuild_checksum_generation \
|
||||||
abuild_checksum_duplicates \
|
abuild_checksum_duplicates \
|
||||||
abuild_subpkg_dep_leak
|
abuild_subpkg_dep_leak \
|
||||||
|
abuild_py_providers_creation
|
||||||
|
|
||||||
export ABUILD_SHAREDIR=$(atf_get_srcdir)/..
|
export ABUILD_SHAREDIR=$(atf_get_srcdir)/..
|
||||||
export ABUILD_CONF=/dev/null
|
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"
|
|| 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
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user