Files
sunnypilot/scripts/test_mici_install.sh
T
Harald Schäfer db01481db1 Test fresh openpilot installs on mici (#39492)
* Test fresh openpilot installs on mici

* Run the installer with the AGNOS app's resource limits

* Keep the clean install in the device app slice

* Exercise a bucket-only LFS object in the mici install test

* Revert "Exercise a bucket-only LFS object in the mici install test"

This reverts commit 1bd772d3afd8523784c8855e8adc61dabe9f2f07.

* Simplify the fresh mici installer test

* Run the mici install test directly from Alfred

* Remove installer test comment
2026-11-27 21:50:56 -08:00

23 lines
662 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
data=$(mktemp -d /data/test-install.XXXXXX)
trap 'rm -rf "$data"' EXIT
cd "$data"
curl -fsSL -A "AGNOSSetup-$(cat /VERSION)" -H "X-openpilot-device-type: mici" "$1" -o installer
chmod +x installer
sudo unshare --mount sh -ec '
mount --bind . /data
exec runuser --login comma -c /data/installer
'
test -x continue.sh
cd openpilot
test -x ./launch_openpilot.sh
expected_commit=$(git rev-parse --verify "$2^{commit}")
test "$(git rev-parse HEAD)" = "$expected_commit"
git submodule status --recursive | awk '/^[-+U]/ { print; exit 1 }'
git lfs ls-files | awk '$2 == "-" { print "Unresolved LFS pointer:", $0; exit 1 }'