Setup CI for app-ng

This commit is contained in:
topjohnwu
2026-03-17 20:04:47 -07:00
parent e4f4239f5c
commit 5cb025e7cc
5 changed files with 103 additions and 55 deletions
+10 -2
View File
@@ -49,11 +49,11 @@ wait_for_pm() {
}
run_setup() {
local variant=$1
local apk=$1
adb shell 'PATH=$PATH:/debug_ramdisk magisk -v'
# Install the Magisk app
adb install -r -g out/app-${variant}.apk
adb install -r -g $apk
# Install the test app
adb install -r -g out/test.apk
@@ -64,6 +64,14 @@ run_setup() {
am_instrument '.Environment#setupEnvironment' $app
}
print_apks() {
if [ "$#" -eq 0 ]; then
find out -maxdepth 1 -type f -name "app-*.apk" -or -name "apk-*.apk"
else
echo "$@"
fi
}
run_tests() {
local pkg='com.topjohnwu.magisk.test'
local self="$pkg/$pkg.TestRunner"