mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 03:20:46 -05:00
Setup CI for app-ng
This commit is contained in:
+10
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user