Skip to content
Snippets Groups Projects

QDS-11960 Create testing infrastructure for x86_64

Merged Burak Hançerli requested to merge QDS-11960/automated-tests into master
1 file
+ 5
23
Compare changes
  • Side-by-side
  • Inline
+ 5
23
@@ -11,33 +11,15 @@ test-qtuiviewer:
QDS_CI_JOB_TEST_APK_PATH: "tests/android-build/build/outputs/apk/release/android-build-release-unsigned.apk"
script:
- |
wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator
chmod +x android-wait-for-emulator
adb start-server
emulator -avd test -no-boot-anim -no-window -no-audio -no-snapshot -no-accel &
boot_completed=""
failcounter=0
timeout_in_sec=360
# adb -e shell getprop sys.boot_completed
# above command will return 1 if boot is completed
until [[ "$boot_completed" =~ "1" ]]; do
boot_completed=$(adb -e shell getprop sys.boot_completed 2>&1 &)
failcounter=$((failcounter + 1))
echo "Waiting for emulator to start"
if [[ $failcounter -gt timeout_in_sec ]]; then
echo "Timeout ($timeout_in_sec seconds) reached; failed to start emulator"
exit 1
fi
sleep 1
done
echo "Emulator started"
./android-wait-for-emulator
- ls -l ${QDS_CI_ARTIFACTS_PATH}
- ls -l ${QDS_CI_ARTIFACTS_PATH}/android/
- ls -l ${QDS_CI_ARTIFACTS_PATH}/android/x86_64
- ls -l ${QDS_CI_ARTIFACTS_PATH}/android/x86_64/app
- cd ${QDS_CI_ARTIFACTS_PATH}/android/x86_64/app || exit 1
- ls -l ${QDS_CI_ARTIFACTS_PATH}/android/x86_64/build
- cd ${QDS_CI_ARTIFACTS_PATH}/android/x86_64/build || exit 1
- |
${DOCKER_ENV_QT_PATH_WITH_VERSION}/gcc_64/bin/androidtestrunner \
--path tests/android-build \
Loading