summaryrefslogtreecommitdiff
path: root/packages/Shell/tests
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2019-05-02 21:35:45 -0700
committerSasha Smundak <asmundak@google.com>2019-05-02 21:35:45 -0700
commit995887eafb529d061602f2702a03a67e9b58f8f0 (patch)
tree435e84cc5c6d0f140e8e0f475ade1b9c1a1286e5 /packages/Shell/tests
parent1764f6a49e7ecd54c2ca44dcc8969c94fbbaa139 (diff)
Convert packages/Shell/**/Android.mk file to Android.bp
See build/soong/README.md for more information. Bug: 122332340 Test: atest ShellTests (same errors as baseline) Change-Id: I63b777342359e0b42ccd554b7d056c7431178380
Diffstat (limited to 'packages/Shell/tests')
-rw-r--r--packages/Shell/tests/Android.bp19
-rw-r--r--packages/Shell/tests/Android.mk24
2 files changed, 19 insertions, 24 deletions
diff --git a/packages/Shell/tests/Android.bp b/packages/Shell/tests/Android.bp
new file mode 100644
index 000000000000..8536c4fbb5a3
--- /dev/null
+++ b/packages/Shell/tests/Android.bp
@@ -0,0 +1,19 @@
+android_test {
+ name: "ShellTests",
+ srcs: ["src/**/*.java"],
+ libs: [
+ "android.test.runner",
+ "android.test.base",
+ "android.test.mock",
+ ],
+ static_libs: [
+ "androidx.test.rules",
+ "mockito-target-minus-junit4",
+ "ub-uiautomator",
+ "junit",
+ ],
+ platform_apis: true,
+ test_suites: ["device-tests"],
+ instrumentation_for: "Shell",
+ certificate: "platform",
+}
diff --git a/packages/Shell/tests/Android.mk b/packages/Shell/tests/Android.mk
deleted file mode 100644
index 44ff3383d566..000000000000
--- a/packages/Shell/tests/Android.mk
+++ /dev/null
@@ -1,24 +0,0 @@
-
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := tests
-
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_JAVA_LIBRARIES := android.test.runner android.test.base android.test.mock
-
-LOCAL_STATIC_JAVA_LIBRARIES := \
- androidx.test.rules \
- mockito-target-minus-junit4 \
- ub-uiautomator \
- junit \
-
-LOCAL_PACKAGE_NAME := ShellTests
-LOCAL_PRIVATE_PLATFORM_APIS := true
-LOCAL_COMPATIBILITY_SUITE := device-tests
-LOCAL_INSTRUMENTATION_FOR := Shell
-
-LOCAL_CERTIFICATE := platform
-
-include $(BUILD_PACKAGE)