Skip to content

Investigate running tests via VM #27

@silbinarywolf

Description

@silbinarywolf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions