Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 1 | #! /bin/bash |
| 2 | # |
| 3 | # Copyright 2017 The Android Open Source Project. |
| 4 | # |
| 5 | # Builds and runs signature APK tests. |
| 6 | |
Mathew Inwood | f585217 | 2018-03-01 13:12:20 +0000 | [diff] [blame] | 7 | set -e |
| 8 | |
Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 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 |
Jiyong Park | 49d695e | 2018-02-01 22:49:17 +0900 | [diff] [blame] | 17 | CtsSystemApiSignatureTestCases |
Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 18 | CtsAndroidTestMockCurrentApiSignatureTestCases |
| 19 | CtsAndroidTestRunnerCurrentApiSignatureTestCases |
Paul Duffin | b0c8d0d | 2019-02-15 15:51:30 +0000 | [diff] [blame] | 20 | CtsAndroidTestBase28ApiSignatureTestCases |
| 21 | CtsAndroidTestBaseCurrentApiSignatureTestCases |
Przemyslaw Szczepaniak | baf73c6 | 2018-02-22 16:36:06 +0000 | [diff] [blame] | 22 | |
| 23 | CtsApacheHttpLegacy27ApiSignatureTestCases |
Paul Duffin | d92a572 | 2017-07-14 15:42:39 +0100 | [diff] [blame] | 24 | CtsApacheHttpLegacyCurrentApiSignatureTestCases |
Przemyslaw Szczepaniak | baf73c6 | 2018-02-22 16:36:06 +0000 | [diff] [blame] | 25 | CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases |
Paul Duffin | ce31c05 | 2018-01-11 20:55:18 +0000 | [diff] [blame] | 26 | |
| 27 | CtsSystemApiAnnotationTestCases |
David Brazdil | 12f70c8 | 2018-02-19 11:44:20 +0000 | [diff] [blame] | 28 | |
Andrei Onea | 5b08961 | 2020-09-08 14:36:49 +0100 | [diff] [blame] | 29 | CtsHiddenApiBlocklistCurrentApiTestCases |
| 30 | CtsHiddenApiBlocklistApi27TestCases |
| 31 | CtsHiddenApiBlocklistApi28TestCases |
| 32 | CtsHiddenApiBlocklistDebugClassTestCases |
David Brazdil | ffdbfcc | 2018-05-09 15:18:32 +0100 | [diff] [blame] | 33 | |
| 34 | CtsHiddenApiKillswitchWildcardTestCases |
Andrei Onea | e504e2a | 2020-09-08 14:51:54 +0100 | [diff] [blame] | 35 | CtsHiddenApiKillswitchSdkListTestCases |
David Brazdil | ffdbfcc | 2018-05-09 15:18:32 +0100 | [diff] [blame] | 36 | CtsHiddenApiKillswitchDebugClassTestCases |
Sundong Ahn | a2dd9a4 | 2019-01-24 11:19:32 +0900 | [diff] [blame] | 37 | |
| 38 | CtsSharedLibsApiSignatureTestCases |
Paul Duffin | 5b11179 | 2017-07-10 14:56:04 +0100 | [diff] [blame] | 39 | " |
| 40 | else |
| 41 | PACKAGES=${1+"$@"} |
| 42 | fi |
| 43 | |
Paul Duffin | bd54e93 | 2019-01-29 16:18:28 +0000 | [diff] [blame] | 44 | atest ${PACKAGES} |