mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
test: Test subpackages which set a different architecture (MR 2267)
This commit is contained in:
parent
71ac87e6af
commit
812a3e4a85
2 changed files with 8 additions and 1 deletions
|
@ -33,6 +33,9 @@ def test_subpackages():
|
||||||
assert subpkg["pkgdesc"] == "This is one of the custom subpackages"
|
assert subpkg["pkgdesc"] == "This is one of the custom subpackages"
|
||||||
assert subpkg["depends"] == ["postmarketos-base", "glibc"]
|
assert subpkg["depends"] == ["postmarketos-base", "glibc"]
|
||||||
|
|
||||||
|
subpkg = apkbuild["subpackages"]["different_arch"]
|
||||||
|
assert subpkg["pkgdesc"] == "This has a different architecture than the other subpackages"
|
||||||
|
|
||||||
# Successful extraction
|
# Successful extraction
|
||||||
path = (testdata + "/init_questions_device/aports/device/testing/"
|
path = (testdata + "/init_questions_device/aports/device/testing/"
|
||||||
"device-nonfree-firmware/APKBUILD")
|
"device-nonfree-firmware/APKBUILD")
|
||||||
|
|
6
test/testdata/apkbuild/APKBUILD.subpackages
vendored
6
test/testdata/apkbuild/APKBUILD.subpackages
vendored
|
@ -1,6 +1,6 @@
|
||||||
pkgname="subpackages"
|
pkgname="subpackages"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
subpackages="simple custom:custom_function"
|
subpackages="simple custom:custom_function different_arch::x86_64"
|
||||||
depends="postmarketos-base"
|
depends="postmarketos-base"
|
||||||
|
|
||||||
simple() {
|
simple() {
|
||||||
|
@ -11,3 +11,7 @@ custom_function() {
|
||||||
pkgdesc="This is one of the custom $pkgname"
|
pkgdesc="This is one of the custom $pkgname"
|
||||||
depends="$depends glibc"
|
depends="$depends glibc"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
different_arch() {
|
||||||
|
pkgdesc="This has a different architecture than the other $pkgname"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue