Skip to content

Commit 2ad3180

Browse files
committed
WIP4: Use Android emulator to run tests.
1 parent 2727e6e commit 2ad3180

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/android.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
6464
- name: Start emulator
6565
run: |
66+
export PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native
67+
6668
emulator -avd test_avd \
6769
-no-snapshot-save \
6870
-no-window \
@@ -83,7 +85,7 @@ jobs:
8385
ctest --show-only=json-v1 > tests.json
8486
8587
# Push all test executables
86-
jq -r '.tests[].command[0]' tests.json | sort -u | while read exe; do
88+
for exe in $(jq -r '.tests[].command[0]' tests.json | sort -u); do
8789
adb push "$exe" /data/local/tmp/
8890
adb shell chmod +x "/data/local/tmp/$(basename "$exe")"
8991
done

0 commit comments

Comments
 (0)