diff --git a/.ci/integration.sh b/.ci/integration.sh index 51b4b44e..16d00bec 100755 --- a/.ci/integration.sh +++ b/.ci/integration.sh @@ -29,6 +29,11 @@ pmbootstrap -q shutdown # Default for tests where the device doesn't matter pmbootstrap config device qemu-amd64 +# Tests the bootimg analysis functionality. +analyze_bootimg() { + pmbootstrap bootimg_analyze test/data/htc-primou-boot.img +} + # A test that builds normal and FDE images for the given device/ui build_images() { device="$1" diff --git a/.ci/integration_tests/analyze_bootimg b/.ci/integration_tests/analyze_bootimg new file mode 120000 index 00000000..3c1657aa --- /dev/null +++ b/.ci/integration_tests/analyze_bootimg @@ -0,0 +1 @@ +../integration.sh \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6b688731..595cab58 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -126,6 +126,11 @@ deploy: paths: [packages] expire_in: 1 week +analyze bootimg: + extends: .integration + script: + - .ci/integration_tests/analyze_bootimg + # Test that we can generate an install rootfs on AMD64 for native # and arm64 QEMU targets install amd64: diff --git a/test/data/htc-primou-boot.img b/test/data/htc-primou-boot.img new file mode 100644 index 00000000..89cfe5a9 Binary files /dev/null and b/test/data/htc-primou-boot.img differ