From eb0c8951196c637e44daf3c0617b131b997d5d2c Mon Sep 17 00:00:00 2001 From: Lena Date: Thu, 1 Jan 2026 00:00:00 +0000 Subject: scrcpy-android: mirror an Android device over wireless ADB Native Java app for Android 12+ that mirrors another Android device over wireless ADB, forwarding video, audio, touch input, and clipboard. Bundles a pinned scrcpy-server.jar and the vendored libadb-android stack. Supports h264/h265/av1 video and raw/opus audio with in-app codec selection. No NDK, no Kotlin. Includes JVM unit tests and a Docker-based emulator e2e rig. --- test-rig/run.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 test-rig/run.sh (limited to 'test-rig/run.sh') diff --git a/test-rig/run.sh b/test-rig/run.sh new file mode 100755 index 0000000..ff63c21 --- /dev/null +++ b/test-rig/run.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# In-container orchestrator. Called by ./test from outside. +# /work/test-rig/run.sh unit|e2e|all +# +# Expects to run inside the scrcpy-android-test docker image with +# /work mounted at the project root. + +set -eu + +cmd="${1:-unit}" + +mkdir -p /work/.tools/home /work/.tools/gradle-home /work/.tools/avd +export HOME="/work/.tools/home" +export GRADLE_USER_HOME="/work/.tools/gradle-home" +export ANDROID_AVD_HOME="/work/.tools/avd" + +unit() { + echo "test: gradle :app:test" + /work/gradlew --no-daemon -q :app:test +} + +e2e() { + /work/test-rig/e2e.sh +} + +case "$cmd" in + unit) unit ;; + e2e) e2e ;; + all) unit && e2e ;; + record) /work/test-rig/record.sh ;; + apk) /work/test-rig/build-apk.sh ;; + *) echo "run.sh: bad cmd $cmd" >&2; exit 2 ;; +esac -- cgit v1.2.3