blob: fe7e58e6bf0b7df7a3daefe4fd8c444a9371e2bd [file] [log] [blame]
#! /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
CtsAndroidTestBase28ApiSignatureTestCases
CtsAndroidTestBaseCurrentApiSignatureTestCases
CtsApacheHttpLegacy27ApiSignatureTestCases
CtsApacheHttpLegacyCurrentApiSignatureTestCases
CtsApacheHttpLegacyUsesLibraryApiSignatureTestCases
CtsSystemApiAnnotationTestCases
CtsHiddenApiBlocklistCurrentApiTestCases
CtsHiddenApiBlocklistApi27TestCases
CtsHiddenApiBlocklistApi28TestCases
CtsHiddenApiBlocklistDebugClassTestCases
CtsHiddenApiKillswitchWildcardTestCases
CtsHiddenApiKillswitchSdkListTestCases
CtsHiddenApiKillswitchDebugClassTestCases
CtsSharedLibsApiSignatureTestCases
"
else
PACKAGES=${1+"$@"}
fi
atest ${PACKAGES}