Added Python3. (Still testing integration)

This commit is contained in:
Gerhard Stein
2016-12-03 11:31:30 +01:00
parent 9a1dbfc234
commit 1194788eb9
47 changed files with 2092 additions and 10 deletions

24
project/jni/python3/mk/test.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
source ./env
pushd "$BASE/sdk/android-sdk-r${SDK_REV}" > /dev/null
# TODO: Figure out an appropriate port number.
PORT=5554
# Boot the emulator, wait for it.
./tools/emulator -avd "${ANDROID_VM_NAME}-${TEST_IDENTIFIER}" -port "${PORT}" -no-snapshot-save ${ANDROID_EMULATOR_OPTIONS} &
./platform-tools/adb -s "emulator-${PORT}" wait-for-device
# Copy the files over.
./platform-tools/adb -s "emulator-${PORT}" push "${ANDROID_PREFIX}/${BUILD_IDENTIFIER}" "${ANDROID_EMULATOR_TESTDIR}"
# Run the tests!
./platform-tools/adb -s "emulator-${PORT}" shell <<-EOF
cd "${ANDROID_EMULATOR_TESTDIR}"
bin/python3.3 -m test
exit
EOF
# Stop the emulator.
./platform-tools/adb -s "emulator-${PORT}" emu kill
popd > /dev/null