aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuntao Xu <yuntaoxu@google.com>2021-05-04 23:20:19 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-05-04 23:20:19 +0000
commit7f375887af24d7fcf8cdc7ee4e65fe1ae312eb2b (patch)
tree0b6a890691545518bc83b40f5330992b5d7ba234
parentb3566f28320874f3841d9b3bde840043c8f19349 (diff)
parent05f052f3d7b9d97c1bf70933e547f7c03ae70aa4 (diff)
downloadplatform_packages_apps_TV-7f375887af24d7fcf8cdc7ee4e65fe1ae312eb2b.tar.gz
platform_packages_apps_TV-7f375887af24d7fcf8cdc7ee4e65fe1ae312eb2b.tar.bz2
platform_packages_apps_TV-7f375887af24d7fcf8cdc7ee4e65fe1ae312eb2b.zip
Merge "Convert func/Android.mk to Android.bp" am: 05f052f3d7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1690696 Change-Id: Ie892b9824def1cd17b9504e003e73158742e9067
-rw-r--r--tests/func/Android.bp21
-rw-r--r--tests/func/Android.mk26
2 files changed, 21 insertions, 26 deletions
diff --git a/tests/func/Android.bp b/tests/func/Android.bp
new file mode 100644
index 00000000..d4085394
--- /dev/null
+++ b/tests/func/Android.bp
@@ -0,0 +1,21 @@
+package {
+ // See: http://go/android-license-faq
+ default_applicable_licenses: ["Android-Apache-2.0"],
+}
+
+android_test {
+ name: "TVFuncTests",
+ // Include all test java files.
+ srcs: ["src/**/*.java"],
+ static_libs: [
+ "androidx.test.runner",
+ "tv-test-common",
+ "ub-uiautomator",
+ ],
+ libs: ["android.test.base.stubs"],
+ instrumentation_for: "LiveTv",
+ sdk_version: "system_current",
+ optimize: {
+ enabled: false,
+ },
+}
diff --git a/tests/func/Android.mk b/tests/func/Android.mk
deleted file mode 100644
index 60290c2d..00000000
--- a/tests/func/Android.mk
+++ /dev/null
@@ -1,26 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := tests
-
-
-# Include all test java files.
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := TVFuncTests
-LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
-LOCAL_LICENSE_CONDITIONS := notice
-
-LOCAL_STATIC_JAVA_LIBRARIES := \
- androidx.test.runner \
- tv-test-common \
- ub-uiautomator \
-
-LOCAL_JAVA_LIBRARIES := android.test.base.stubs
-
-LOCAL_INSTRUMENTATION_FOR := LiveTv
-
-LOCAL_SDK_VERSION := system_current
-
-LOCAL_PROGUARD_ENABLED := disabled
-include $(BUILD_PACKAGE)