2023-03-02 19:33:29 +02:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2023 The Calyx Institute
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
2024-05-31 16:53:26 -03:00
|
|
|
echo "Disable auto-restore"
|
|
|
|
adb shell bmgr autorestore false
|
2023-10-12 02:13:34 -04:00
|
|
|
|
|
|
|
echo "Installing Seedvault app..."
|
2024-05-31 16:53:26 -03:00
|
|
|
./gradlew --stacktrace :app:installDebugAndroidTest
|
|
|
|
sleep 60
|
2023-10-12 02:13:34 -04:00
|
|
|
|
|
|
|
large_test_exit_code=0
|
2024-09-17 17:24:41 -03:00
|
|
|
./gradlew --stacktrace -Pinstrumented_test_size=large :app:connectedAndroidTest || large_test_exit_code=$?
|
2023-10-12 02:13:34 -04:00
|
|
|
|
|
|
|
adb pull /sdcard/seedvault_test_results
|
|
|
|
|
|
|
|
if [ "$large_test_exit_code" -ne 0 ]; then
|
|
|
|
echo 'Large tests failed.'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
medium_test_exit_code=0
|
|
|
|
./gradlew --stacktrace -Pinstrumented_test_size=medium :app:connectedAndroidTest || medium_test_exit_code=$?
|
|
|
|
|
|
|
|
if [ "$medium_test_exit_code" -ne 0 ]; then
|
|
|
|
echo 'Medium tests failed.'
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|