This cl: Set up the environment for functional test 1. Update Android.mk by adding instrumentation and libs 2. Update AndroidManifest.xml by adding runner Add functional test for bt anomaly, with the following workflow 1. reset battery stats 2. pretend unplug and screen off 3. Start AnomalyTester app, set values and click start button 4. Wait its running 5. Check anomaly preference in battery main page 6. reset all parameters Bug: 63815938 Test: runtest -x BluetoothAnomalyTest Change-Id: Ief02a314d21f6c32d70729047a1d4bdce9ad9920
25 lines
502 B
Makefile
25 lines
502 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
LOCAL_JAVA_LIBRARIES := android.test.runner bouncycastle
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := \
|
|
android-support-test \
|
|
mockito-target \
|
|
ub-uiautomator \
|
|
truth-prebuilt \
|
|
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
|
|
|
LOCAL_PROGUARD_ENABLED := disabled
|
|
|
|
LOCAL_PACKAGE_NAME := AnomalyTester
|
|
|
|
LOCAL_INSTRUMENTATION_FOR := Settings
|
|
|
|
LOCAL_USE_AAPT2 := true
|
|
|
|
include $(BUILD_PACKAGE) |