Add initial test scripts for SettingsIntelligence
Bug: 64691432
Test: make RunSettingsIntelligenceRoboTests
Change-Id: I588ed81289b269c7ce4ad83a8ce1aff18cedf5cf
diff --git a/tests/robotests/Android.mk b/tests/robotests/Android.mk
new file mode 100644
index 0000000..2ebc12f
--- /dev/null
+++ b/tests/robotests/Android.mk
@@ -0,0 +1,40 @@
+#############################################
+# Turbo Robolectric test target. #
+#############################################
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+# Include the testing libraries (JUnit4 + Robolectric libs).
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ platform-system-robolectric \
+ truth-prebuilt
+
+LOCAL_JAVA_LIBRARIES := \
+ junit \
+ platform-robolectric-prebuilt \
+ sdk_vcurrent
+
+LOCAL_INSTRUMENTATION_FOR := SettingsIntelligence
+LOCAL_MODULE := SettingsIntelligenceRoboTests
+
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_STATIC_JAVA_LIBRARY)
+
+#############################################################
+# Turbo runner target to run the previous target. #
+#############################################################
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := RunSettingsIntelligenceRoboTests
+
+LOCAL_SDK_VERSION := system_current
+
+LOCAL_STATIC_JAVA_LIBRARIES := \
+ SettingsIntelligenceRoboTests
+
+LOCAL_TEST_PACKAGE := SettingsIntelligence
+
+include prebuilts/misc/common/robolectric/run_robotests.mk