2019-01-09 13:48:47 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -xe
|
|
|
|
|
|
|
|
arm_flavor=$1
|
2019-01-14 13:15:41 +03:00
|
|
|
api_level=$2
|
2019-01-09 13:48:47 +03:00
|
|
|
|
|
|
|
source $(dirname "$0")/tc-tests-utils.sh
|
|
|
|
|
2020-01-08 17:03:54 +03:00
|
|
|
bitrate=$3
|
|
|
|
set_ldc_sample_filename "${bitrate}"
|
|
|
|
|
2019-01-09 13:48:47 +03:00
|
|
|
model_source=${DEEPSPEECH_TEST_MODEL//.pb/.tflite}
|
|
|
|
model_name=$(basename "${model_source}")
|
2019-06-25 12:08:11 +03:00
|
|
|
export DATA_TMP_DIR=${ANDROID_TMP_DIR}/ds
|
2019-01-09 13:48:47 +03:00
|
|
|
|
|
|
|
download_material "${TASKCLUSTER_TMP_DIR}/ds"
|
|
|
|
|
2020-02-24 15:36:58 +03:00
|
|
|
android_start_emulator "${arm_flavor}" "${api_level}"
|
2019-01-14 13:15:41 +03:00
|
|
|
|
|
|
|
android_setup_ndk_data
|
2019-01-09 13:48:47 +03:00
|
|
|
|
|
|
|
run_tflite_basic_inference_tests
|
|
|
|
|
2020-09-24 21:58:41 +03:00
|
|
|
run_android_hotword_tests
|
|
|
|
|
2019-01-09 13:48:47 +03:00
|
|
|
android_stop_emulator
|