[3.13] gh-116622: Add Android test script (GH-121595) (#123061)

gh-116622: Add Android test script (GH-121595)

Adds a script for running the test suite on Android emulator devices. Starting
with a fresh install of the Android Commandline tools; the script manages
installing other requirements, starting the emulator (if required), and
retrieving results from that emulator.
(cherry picked from commit f84cce6f25)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
This commit is contained in:
Miss Islington (bot) 2024-08-16 10:36:46 +02:00 committed by GitHub
parent 0dd89a7f40
commit cf6d14b966
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 634 additions and 90 deletions

View file

@ -1,4 +1,6 @@
import os
import runpy
import shlex
import signal
import sys
@ -8,10 +10,7 @@
# profile save"), so disabling it should not weaken the tests.
signal.pthread_sigmask(signal.SIG_UNBLOCK, [signal.SIGUSR1])
# To run specific tests, or pass any other arguments to the test suite, edit
# this command line.
sys.argv[1:] = [
"--use", "all,-cpu",
"--verbose3",
]
sys.argv[1:] = shlex.split(os.environ["PYTHON_ARGS"])
# The test module will call sys.exit to indicate whether the tests passed.
runpy.run_module("test")