File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 77
88set -ex
99
10- free -h
11-
1210# This script is originally adopted from https://github.com/pytorch/pytorch/blob/main/android/run_tests.sh
1311ADB_PATH=$ANDROID_HOME /platform-tools/adb
1412
@@ -20,19 +18,15 @@ $ADB_PATH wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; d
2018echo " List all running emulators"
2119$ADB_PATH devices
2220
23- adb shell " free -h"
24-
2521adb uninstall org.pytorch.executorch.test || true
2622adb install -t android-test-debug-androidTest.apk
2723
2824adb logcat -c
29- adb shell am instrument -w -r -e class org.pytorch.executorch.ModuleInstrumentationTest,org.pytorch.executorch.ModuleE2ETest \
25+ adb shell am instrument -w -r -e \
26+ class org.pytorch.executorch.ModuleInstrumentationTest,org.pytorch.executorch.ModuleE2ETest \
3027 org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner > result.txt 2>&1
3128adb logcat -d > logcat.txt
32- adb shell dumpsys meminfo
33-
3429cat logcat.txt
35- cat result.txt
3630grep -q FAILURES result.txt && cat result.txt
3731grep -q FAILURES result.txt && exit -1
3832exit 0
You can’t perform that action at this time.
0 commit comments