summaryrefslogtreecommitdiff
path: root/tests/signature/runSignatureTests.sh
blob: 0e525d02665b2618f89ef1f20aba1c98e1c9fe5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/bash
#
# Copyright 2017 The Android Open Source Project.
#
# Builds and runs signature APK tests.

set -e

if [ -z "$ANDROID_BUILD_TOP" ]; then
    echo "Missing environment variables. Did you run build/envsetup.sh and lunch?" >&2
    exit 1
fi

if [ $# -eq 0 ]; then
    PACKAGES="
CtsCurrentApiSignatureTestCases
CtsSystemApiSignatureTestCases
CtsAndroidTestMockCurrentApiSignatureTestCases
CtsAndroidTestRunnerCurrentApiSignatureTestCases
CtsAndroidTestBase29ApiSignatureTestCases
CtsAndroidTestBaseUsesLibraryApiSignatureTestCases
CtsAndroidTestBaseCurrentApiSignatureTestCases

CtsApacheHttpLegacy27ApiSignatureTestCases
CtsApacheHttpLegacyCurrentApiSignatureTestCases
CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases

CtsSystemApiAnnotationTestCases

CtsHiddenApiBlocklistCurrentApiTestCases
CtsHiddenApiBlocklistApi27TestCases
CtsHiddenApiBlocklistApi28TestCases
CtsHiddenApiBlocklistDebugClassTestCases

CtsHiddenApiKillswitchWildcardTestCases
CtsHiddenApiKillswitchSdkListTestCases
CtsHiddenApiKillswitchDebugClassTestCases

CtsSharedLibsApiSignatureTestCases
"
else
    PACKAGES=${1+"$@"}
fi

atest ${PACKAGES}