diff options
| author | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
|---|---|---|
| committer | Lena <lena@omega> | 2026-08-01 00:00:00 +0000 |
| commit | 7166ac47c58a4a8acccebb07ae9395773ad9958e (patch) | |
| tree | a69e75c9e45f9d0d07cd631411694b791647356b /test-rig/run.sh | |
| parent | 852a8a00273c9128efeed0217a8e5d3fcd8bf780 (diff) | |
| download | scrcpy-android-7166ac47c58a4a8acccebb07ae9395773ad9958e.tar.gz | |
test-rig: exercise release paths
Diffstat (limited to 'test-rig/run.sh')
| -rwxr-xr-x | test-rig/run.sh | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test-rig/run.sh b/test-rig/run.sh index b55ce1e..d4b7b36 100755 --- a/test-rig/run.sh +++ b/test-rig/run.sh @@ -1,6 +1,6 @@ #!/bin/sh # In-container orchestrator. Called by ./test from outside. -# /work/test-rig/run.sh unit|e2e|all|record|screenshots|apk +# /work/test-rig/run.sh unit|server|e2e|all|screenshots|apk # # Expects to run inside the scrcpy-android-test docker image with # /work mounted at the project root. @@ -9,25 +9,31 @@ set -eu cmd="${1:-unit}" -mkdir -p /work/.tools/home /work/.tools/gradle-home /work/.tools/avd +mkdir -p /work/.tools/gradle-home /work/.tools/avd /work/.tools/home/.android export HOME="/work/.tools/home" +export ANDROID_USER_HOME="/work/.tools/home/.android" +export ANDROID_SDK_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 + echo "test: gradle :app:test :adb:test :app:lint" + /work/gradlew --no-daemon -q :app:test :adb:test :app:lint } e2e() { /work/test-rig/e2e.sh } +server() { + /work/scripts/check-server-source +} + case "$cmd" in unit) unit ;; + server) server ;; e2e) e2e ;; - all) unit && e2e ;; - record) /work/test-rig/record.sh ;; + all) unit && server && e2e ;; screenshots) /work/test-rig/screenshots.sh ;; apk) /work/test-rig/build-apk.sh ;; *) echo "run.sh: bad cmd $cmd" >&2; exit 2 ;; |