forked from Mirror/pmbootstrap
device packages: depend on postmarketos-base (#1258)
* device-*: add postmarketos-base to depends * aportgen: add postmarketos-base to depends * Add test case * postmarketos-base: Don't depend on devicepkg * msm-fb-refresher: Enable service in post-install
This commit is contained in:
parent
26f0e2d045
commit
948b5af09b
70 changed files with 158 additions and 145 deletions
|
@ -114,7 +114,9 @@ def test_aportgen_device_wizard(args, monkeypatch):
|
|||
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
|
||||
assert apkbuild["pkgname"] == "device-testsuite-testdevice"
|
||||
assert apkbuild["pkgdesc"] == "Testsuite Testdevice"
|
||||
assert apkbuild["depends"] == ["linux-testsuite-testdevice", "mesa-dri-swrast"]
|
||||
assert apkbuild["depends"] == ["postmarketos-base",
|
||||
"linux-testsuite-testdevice",
|
||||
"mesa-dri-swrast"]
|
||||
|
||||
assert apkbuild_linux["pkgname"] == "linux-testsuite-testdevice"
|
||||
assert apkbuild_linux["pkgdesc"] == "Testsuite Testdevice kernel fork"
|
||||
|
@ -147,12 +149,16 @@ def test_aportgen_device_wizard(args, monkeypatch):
|
|||
answers["Flash method"] = "fastboot"
|
||||
answers["Path"] = ""
|
||||
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
|
||||
assert apkbuild["depends"] == ["linux-testsuite-testdevice", "mkbootimg", "mesa-dri-swrast"]
|
||||
assert apkbuild["depends"] == ["postmarketos-base",
|
||||
"linux-testsuite-testdevice", "mkbootimg",
|
||||
"mesa-dri-swrast"]
|
||||
assert deviceinfo["flash_method"] == answers["Flash method"]
|
||||
assert deviceinfo["generate_bootimg"] == "true"
|
||||
|
||||
# 0xffff (legacy uboot initfs)
|
||||
answers["Flash method"] = "0xffff"
|
||||
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
|
||||
assert apkbuild["depends"] == ["linux-testsuite-testdevice", "uboot-tools", "mesa-dri-swrast"]
|
||||
assert apkbuild["depends"] == ["postmarketos-base",
|
||||
"linux-testsuite-testdevice", "uboot-tools",
|
||||
"mesa-dri-swrast"]
|
||||
assert deviceinfo["generate_legacy_uboot_initfs"] == "true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue