summaryrefslogtreecommitdiffstats
path: root/mobile/android/tests/browser/robocop/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/tests/browser/robocop/Makefile.in')
-rw-r--r--mobile/android/tests/browser/robocop/Makefile.in67
1 files changed, 67 insertions, 0 deletions
diff --git a/mobile/android/tests/browser/robocop/Makefile.in b/mobile/android/tests/browser/robocop/Makefile.in
new file mode 100644
index 000000000..f553080e7
--- /dev/null
+++ b/mobile/android/tests/browser/robocop/Makefile.in
@@ -0,0 +1,67 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+TESTPATH := $(srcdir)/src/org/mozilla/gecko/tests
+
+ANDROID_EXTRA_JARS += \
+ $(srcdir)/libs/robotium-solo-5.5.4.jar \
+ $(NULL)
+
+_JAVA_HARNESS := \
+ Actions.java \
+ Assert.java \
+ Driver.java \
+ Element.java \
+ FennecInstrumentationTestRunner.java \
+ FennecNativeActions.java \
+ FennecMochitestAssert.java \
+ FennecTalosAssert.java \
+ FennecNativeDriver.java \
+ FennecNativeElement.java \
+ LaunchFennecWithConfigurationActivity.java \
+ RoboCopException.java \
+ RobocopShare1.java \
+ RobocopShare2.java \
+ RobocopUtils.java \
+ PaintedSurface.java \
+ StructuredLogger.java \
+ $(NULL)
+
+java-harness := $(addprefix $(srcdir)/src/org/mozilla/gecko/,$(_JAVA_HARNESS))
+java-tests := \
+ $(wildcard $(TESTPATH)/*.java) \
+ $(wildcard $(TESTPATH)/components/*.java) \
+ $(wildcard $(TESTPATH)/helpers/*.java)
+
+ANDROID_MANIFEST_FILE := $(CURDIR)/AndroidManifest.xml
+
+JAVAFILES += \
+ $(java-harness) \
+ $(java-tests) \
+ $(NULL)
+
+include $(topsrcdir)/config/rules.mk
+
+ifndef MOZ_BUILD_MOBILE_ANDROID_WITH_GRADLE
+tools:: $(ANDROID_APK_NAME).apk
+endif
+
+# The test APK needs to know the contents of the target APK while not
+# being linked against them. This is a best effort to avoid getting
+# out of sync with base's build config.
+jars_dir := $(DEPTH)/mobile/android/base
+stumbler_jars_dir := $(DEPTH)/mobile/android/stumbler
+ANDROID_CLASSPATH_JARS += \
+ $(wildcard $(jars_dir)/*.jar) \
+ $(wildcard $(stumbler_jars_dir)/*.jar) \
+ $(NULL)
+# We don't have transitive dependencies: these are the browser jar
+# dependencies inserted manually.
+ANDROID_CLASSPATH_JARS += \
+ $(ANDROID_SUPPORT_V4_AAR_LIB) \
+ $(ANDROID_SUPPORT_V4_AAR_INTERNAL_LIB) \
+ $(ANDROID_DESIGN_AAR_LIB) \
+ $(ANDROID_RECYCLERVIEW_V7_AAR_LIB) \
+ $(ANDROID_APPCOMPAT_V7_AAR_LIB) \
+ $(NULL)