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