Skip to content
Snippets Groups Projects
Unverified Commit 307f4f19 authored by Antoine Fontaine's avatar Antoine Fontaine Committed by Alexey Minnekhanov
Browse files

ci: check that kernels have pmb:cross-native enabled (MR 1247)

follow up to
https://gitlab.com/postmarketOS/pmbootstrap/-/issues/1910,
https://gitlab.com/postmarketOS/pmaports/-/merge_requests/1169 and
https://gitlab.com/postmarketOS/pmaports/-/merge_requests/1187.

Fixing the repo is good, but keeping it clean is better. Ensuring it
before merge will avoid yet another fixup commit.
parent 3ceafb3c
No related branches found
No related tags found
No related merge requests found
......@@ -96,11 +96,23 @@ def device_dependency_check(apkbuild, path):
" <https://postmarketos.org/devicepkg>.")
def test_aports_kernel(args):
"""
Various tests performed on the /**/linux-* aports.
"""
for path in glob.iglob(args.aports + "**/linux-*/APKBUILD", recursive=True):
apkbuild = pmb.parse.apkbuild(args, path)
if "pmb:cross-native" not in apkbuild["options"]:
raise RuntimeError("\"pmb:cross-native\" missing in"
f" options= line: {path}")
def test_aports_device(args):
"""
Various tests performed on the /device/*/device-* aports.
"""
for path in glob.glob(args.aports + "/device/*/device-*/APKBUILD"):
for path in glob.iglob(args.aports + "/device/*/device-*/APKBUILD"):
apkbuild = pmb.parse.apkbuild(args, path)
# Depends: Require "postmarketos-base"
......
  • Administrator @root

    mentioned in commit 6c35f328

    By Antoine Fontaine on 2020-09-02T13:52:10

    · Imported

    mentioned in commit 6c35f328

    By Antoine Fontaine on 2020-09-02T13:52:10

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 03713f6d

    By Antoine Fontaine on 2020-09-02T13:56:15

    · Imported

    mentioned in commit 03713f6d

    By Antoine Fontaine on 2020-09-02T13:56:15

    Edited by Ghost User
    Toggle commit list
  • Administrator @root

    mentioned in commit 264ab9e6

    By Antoine Fontaine on 2020-09-10T11:54:12

    · Imported

    mentioned in commit 264ab9e6

    By Antoine Fontaine on 2020-09-10T11:54:12

    Edited by Ghost User
    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment