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
20CtsAndroidTestBase28ApiSignatureTestCases
21CtsAndroidTestBaseCurrentApiSignatureTestCases
22
23CtsApacheHttpLegacy27ApiSignatureTestCases
24CtsApacheHttpLegacyCurrentApiSignatureTestCases
25CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases
26
27CtsSystemApiAnnotationTestCases
28
29CtsHiddenApiBlacklistCurrentApiTestCases
30CtsHiddenApiBlacklistApi27TestCases
31CtsHiddenApiBlacklistApi28TestCases
32CtsHiddenApiBlacklistDebugClassTestCases
33
34CtsHiddenApiKillswitchWildcardTestCases
35CtsHiddenApiKillswitchWhitelistTestCases
36CtsHiddenApiKillswitchDebugClassTestCases
37
38CtsSharedLibsApiSignatureTestCases
39"
40else
41    PACKAGES=${1+"$@"}
42fi
43
44atest ${PACKAGES}
45