File tree Expand file tree Collapse file tree 1 file changed +2
-15
lines changed
Expand file tree Collapse file tree 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -18,25 +18,12 @@ $ADB_PATH wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; d
1818echo " List all running emulators"
1919$ADB_PATH devices
2020
21- adb uninstall com.example.executorchllamademo || true
22- adb uninstall com.example.executorchllamademo.test || true
23- adb install -t app-debug.apk
24- adb install -t app-debug-androidTest.apk
25-
26- adb shell mkdir -p /data/local/tmp/llama
27- adb push model.pte /data/local/tmp/llama
28- adb push tokenizer.bin /data/local/tmp/llama
29- adb logcat -c
30- adb shell am instrument -w -r com.example.executorchllamademo.test/androidx.test.runner.AndroidJUnitRunner > result.txt 2>&1
31- adb logcat -d > logcat.txt
32- cat logcat.txt
33- grep -q FAILURES result.txt || cat result.txt
34-
3521adb uninstall org.pytorch.executorch.test || true
3622adb install -t android-test-debug-androidTest.apk
3723
3824adb logcat -c
39- adb shell am instrument -w -r org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner > result.txt 2>&1
25+ adb shell am instrument -w -r org.pytorch.executorch.test/androidx.test.runner.AndroidJUnitRunner \
26+ -e class org.pytorch.executorch.ModuleInstrumentationTest > result.txt 2>&1
4027adb logcat -d > logcat.txt
4128cat logcat.txt
4229grep -q FAILURES result.txt || cat result.txt
You can’t perform that action at this time.
0 commit comments