summaryrefslogtreecommitdiff
path: root/tests/SmokeTest
diff options
context:
space:
mode:
authorSasha Smundak <asmundak@google.com>2019-02-20 16:52:48 -0800
committerSasha Smundak <asmundak@google.com>2019-03-07 16:14:00 -0800
commitb6aca11e8078b4a93da1c09c94b4d0d7ba0befef (patch)
tree5e9ad0c8f23a127ff116cbd4adf1b72d1fe1bbe5 /tests/SmokeTest
parent10c573ff852309894b383ae9aa13dca0d64f8d3e (diff)
Convert tests/**/Android.mk files to Android.bp
See build/soong/README.md for more information. Note: tests/ImfTest/Android.mk causes conflict as it hasn't been yet ported to internal master. Do it later. Note: the conversion in the following directories has to be done in the internal master first because of the conflicts: * tests/ActivityManagerPerfTests * tests/AppLaunch * tests/AppLaunchWear * tests/BackgroundDexOptServiceIntegrationTests * tests/Camera2Tests/CameraToo * tests/Camera2Tests/SmartCamera/SimpleCamera * tests/Compatibility * tests/Internal * tests/RcsTests * tests/ServiceCrashTest * tests/UsbTests Bug: 122332340 Test: treehugger Change-Id: Ie17590c6a96aee5caa80d38092a3de5c1b6efe8d
Diffstat (limited to 'tests/SmokeTest')
-rw-r--r--tests/SmokeTest/Android.bp6
-rw-r--r--tests/SmokeTest/Android.mk16
-rw-r--r--tests/SmokeTest/tests/Android.bp10
-rw-r--r--tests/SmokeTest/tests/Android.mk21
4 files changed, 16 insertions, 37 deletions
diff --git a/tests/SmokeTest/Android.bp b/tests/SmokeTest/Android.bp
new file mode 100644
index 000000000000..bc45ee6799b4
--- /dev/null
+++ b/tests/SmokeTest/Android.bp
@@ -0,0 +1,6 @@
+android_test {
+ name: "SmokeTestApp",
+ // This builds "SmokeTestApp"
+ srcs: ["src/**/*.java"],
+ sdk_version: "8",
+}
diff --git a/tests/SmokeTest/Android.mk b/tests/SmokeTest/Android.mk
deleted file mode 100644
index 591a84e95ec7..000000000000
--- a/tests/SmokeTest/Android.mk
+++ /dev/null
@@ -1,16 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-LOCAL_MODULE_TAGS := tests
-
-# This builds "SmokeTestApp"
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-LOCAL_PACKAGE_NAME := SmokeTestApp
-
-LOCAL_SDK_VERSION := 8
-
-include $(BUILD_PACKAGE)
-
-# This builds "SmokeTest"
-include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/tests/SmokeTest/tests/Android.bp b/tests/SmokeTest/tests/Android.bp
new file mode 100644
index 000000000000..ceb2d193de79
--- /dev/null
+++ b/tests/SmokeTest/tests/Android.bp
@@ -0,0 +1,10 @@
+android_test {
+ name: "SmokeTest",
+ // Include all test java files.
+ srcs: ["src/**/*.java"],
+ // Notice that we don't have to include the src files of SmokeTestApp because, by
+ // running the tests using an instrumentation targeting SmokeTestApp, we
+ // automatically get all of its classes loaded into our environment.
+ instrumentation_for: "SmokeTestApp",
+ sdk_version: "8",
+}
diff --git a/tests/SmokeTest/tests/Android.mk b/tests/SmokeTest/tests/Android.mk
deleted file mode 100644
index 18e682ee8b46..000000000000
--- a/tests/SmokeTest/tests/Android.mk
+++ /dev/null
@@ -1,21 +0,0 @@
-LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-# We only want this apk build for tests.
-LOCAL_MODULE_TAGS := tests
-
-# Include all test java files.
-LOCAL_SRC_FILES := $(call all-java-files-under, src)
-
-# Notice that we don't have to include the src files of SmokeTestApp because, by
-# running the tests using an instrumentation targeting SmokeTestApp, we
-# automatically get all of its classes loaded into our environment.
-
-LOCAL_PACKAGE_NAME := SmokeTest
-
-LOCAL_INSTRUMENTATION_FOR := SmokeTestApp
-
-LOCAL_SDK_VERSION := 8
-
-include $(BUILD_PACKAGE)
-