1#! /bin/bash 2# 3# Copyright 2017 The Android Open Source Project. 4# 5# Builds and runs signature APK tests. 6 7set -e 8 9if [ -z "$ANDROID_BUILD_TOP" ]; then 10 echo "Missing environment variables. Did you run build/envsetup.sh and lunch?" >&2 11 exit 1 12fi 13 14if [ $# -eq 0 ]; then 15 PACKAGES=" 16CtsCurrentApiSignatureTestCases 17CtsSystemApiSignatureTestCases 18CtsAndroidTestMockCurrentApiSignatureTestCases 19CtsAndroidTestRunnerCurrentApiSignatureTestCases 20CtsAndroidTestBase29ApiSignatureTestCases 21CtsAndroidTestBaseUsesLibraryApiSignatureTestCases 22CtsAndroidTestBaseCurrentApiSignatureTestCases 23 24CtsApacheHttpLegacy27ApiSignatureTestCases 25CtsApacheHttpLegacyCurrentApiSignatureTestCases 26CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases 27 28CtsSystemApiAnnotationTestCases 29 30CtsHiddenApiBlocklistCurrentApiTestCases 31CtsHiddenApiBlocklistApi27TestCases 32CtsHiddenApiBlocklistApi28TestCases 33CtsHiddenApiBlocklistDebugClassTestCases 34 35CtsHiddenApiKillswitchWildcardTestCases 36CtsHiddenApiKillswitchSdkListTestCases 37CtsHiddenApiKillswitchDebugClassTestCases 38 39CtsSharedLibsApiSignatureTestCases 40" 41else 42 PACKAGES=${1+"$@"} 43fi 44 45atest ${PACKAGES} 46