-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Description
The goal here would be to make CI builds run the examples in a way that at least can catch start-up errors.
zig build -Dtarget=x86_64-linux-android
adb install ./zig-out/bin/sdl-zig-demo.apk
adb shell am instrument -r -w com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
Current issue trying to run as instrumented
Performing Streamed Install
Success
onError: commandError=true message=INSTRUMENTATION_FAILED: com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
android.util.AndroidException: INSTRUMENTATION_FAILED: com.zig.sdl2/com.zig.sdl2.ZigSDLActivity
at com.android.commands.am.Instrument.run(Instrument.java:524)
at com.android.commands.am.Am.runInstrument(Am.java:199)
at com.android.commands.am.Am.onRun(Am.java:80)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:62)
at com.android.commands.am.Am.main(Am.java:50)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:355)
Notes
How to check for instrumented services
adb shell pm list instrumentation
Research
Random links to assist myself or others on figuring out how to do this
- How to get instrumentation working: https://stackoverflow.com/a/28682147/5013410
- Look at examples of setting up a runner class: https://github.com/android/testing-samples/blob/main/runner/AndroidTestOrchestratorSample/app/src/androidTest/java/com/example/android/testing/androidtestorchestratorsample/CalculatorInstrumentationTest.java
<instrumentation>
element: https://developer.android.com/guide/topics/manifest/instrumentation-element
Metadata
Metadata
Assignees
Labels
No labels