Commit Graph
538 Commits
Author SHA1 Message Date
Andrew Halberstadt 21a1942ba7 Bug 1219442 - Re-write specialpowers as a restartless addon, r=jmaher
In order to meet the addon signing requirement for tests, specialpowers
needs to be installed at gecko runtime. This means it must be restartless.
This patch packages specialpowers as a restartless addon, but it does not
yet install it at runtime.
2015-11-05 10:00:59 -05:00
Nick Alexander 0354170ec8 Bug 938994 - Move build/mobile/robocop into mobile/android/tests/browser/robocop. r=gbrown
This builds the Robocop tests with |mach build mobile/android|, making
it easier for developers to build Fennec and the tests at the same
time.
2015-11-09 12:55:38 -08:00
Nick Alexander 296b5271de Bug 1219058 - Part 2: Normalize Robocop test harness source layout. r=gbrown
Pretty straight-forward.  The win here is that the directory is now
sensible, so we don't need the robocop_harness symlink for the Gradle
build configuration.
2015-10-27 17:16:09 -07:00
Nick Alexander 467819eda0 Bug 1219058 - Part 1: Normalize Robocop test source layout. r=gbrown,mfinkle
This moves the Robocop test code into src/org/mozilla/gecko/tests.
The org/mozilla/gecko/tests matches the package name we have now.
2015-10-27 16:45:00 -07:00
Nick Alexander 67c8886684 Backed out changesets fb5765dffe01 and 0447429a5627 (Bug 1219058). r=me
I realize I wanted to shorten these paths in response to review
comments.  I'll reland shortly.
2015-10-28 14:47:14 -07:00
Nick Alexander c7f2f1d4b3 Bug 1219058 - Part 2: Normalize Robocop test harness source layout. r=gbrown
Pretty straight-forward.  The win here is that the directory is now
sensible, so we don't need the robocop_harness symlink for the Gradle
build configuration.
2015-10-27 17:16:09 -07:00
Nick Alexander 02f15bcb09 Bug 1219058 - Part 1: Normalize Robocop test source layout. r=gbrown,mfinkle
This moves the Robocop test code into
src/androidTest/java/org/mozilla/gecko/tests.  The
src/androidTest/java is Gradle standard; the org/mozilla/gecko/tests
matches the package name we have now.
2015-10-27 16:45:00 -07:00
Sebastian Kaspari 85944a3609 Bug 1207194 - Temporarily hardcode targetSdkVersion to 22 in AndroidManifest.xml. r=nalexander 2015-10-08 17:57:48 +02:00
Sebastian Kaspari b6300d9d89 Bug 1208587 - SUTAgent: Replace deprecated Notification APIs with Notification.Builder. r=mcomella 2015-10-05 10:51:18 +02:00
Sebastian Kaspari bc67da1412 Bug 1208587 - SUTAgent: Inline isIPv4Address(). r=jmaher 2015-10-02 13:54:28 +02:00
Sebastian Kaspari 4f652b6eda Bug 1208587 - SUTAgent: Remove unused method GetInternetData(). r=jmaher 2015-10-02 13:54:02 +02:00
Jim Chen 26c224bfb7 Bug 1200343 - Add native calls for pref events; r=snorp
This patch adds two native calls to PrefsHelper to avoid using
GeckoEvent for getting prefs.
2015-09-28 12:07:09 -04:00
Wes Kocher 090df7a4a5 Backed out 4 changesets (bug 1200343) for android talos failures
Backed out changeset 67dc42cbf02b (bug 1200343)
Backed out changeset b077acafcebb (bug 1200343)
Backed out changeset e115ca114601 (bug 1200343)
Backed out changeset 905e1fb54fd4 (bug 1200343)
2015-09-25 13:21:58 -07:00
Jim Chen d406c38990 Bug 1200343 - Add native calls for pref events; r=snorp
This patch adds two native calls to PrefsHelper to avoid using
GeckoEvent for getting prefs.
2015-09-25 15:03:34 -04:00
Nick Alexander b4b941fa98 Bug 1108782 - Part 2: Explode AAR files at configure time. r=glandium
This gets us a limited version of AAR support: we can consume static
AAR libraries, where here static does not refer to linking, but to
static assets that are fixed at build-backend time and not modified
(or produced) during the build.  This lets us pin our dependencies
(and move to Google's versioned Maven repository packages, away from
Google's unversioned ad-hoc packages).

By restricting to static AAR libraries, we avoid having to handle
truly complicated dependency trees, as changing parts of generated AAR
files require delicate rebuilding of the APKs (and internal libraries)
that depend on the AAR files.

It is possible that we will generate AARs in the tree at some time.
Right now, we don't do that, even for GeckoView: the AARs produced are
assembled as artifacts at package time and are intended for external
consumption.  We might want this for GeckoView and Fennec at some
time; we should consider using Gradle everywhere at that point.

The patch itself does the simplest possible thing (which has precedent
from Gradle and other build systems): it simply "explodes" the AAR
into the object directory and uses existing mechanisms to refer to the
exploded pieces.

AARs have both required and optional components.  Each component is
defined with an expected and required flag. If a component is expected
and not present, or not expected and is present, an error is raised.
If the component is expected and present, autoconf's ifelse() macro is
used to define the relevant AAR_* component variables.  If the
component is not expected and not present, no action is taken.  A
consuming build backend therefore can guard all AAR_* component
variables with just the top-level AAR variable.

Many AAR files have empty assets/ directories.  This patch doesn't
explode empty assets/ directories, protecting against trivial changes
to AAR files that don't impact the build.

There's a lot not to like in this approach, including:

* We need to manually reference internal AAR libs;
* I haven't separated the pinned version numbers out of configure.in.

However, it's closer to what we want than what we have!
2015-09-22 10:04:26 -07:00
Nick Alexander 54c3e9fe77 Bug 1108782 - Part 1: straighten out Java classpaths. r=glandium
This commit is us getting out of our own way.  We were specifying
-classpath twice, once in $(JAVAC) and once in java-build.mk.  Only
the latter of these is active.  This a problem for ANDROID_EXTRA_JARS
-- those JARs should be on the classpath and input to $(DX) -- and
JARs that should be on the classpath but *not* input to $(DX).  This
commit removes the global flags to $(JAVAC) and adds
JAVA_{BOOT}CLASSPATH_JARS.  This required some hijinkery moving
wildcards to moz.build files, but everything seems to work.

As well as clarifying some parts of the build, part 2 uses this work
to modify the classpath.
2015-08-31 13:35:05 -07:00
Alexander Buck b88488d756 Bug 1168294 - Remove redundant null checks in DirCursor classes. r=mcomella 2015-06-04 12:13:00 -04:00
Geoff Brown 98986110cb Bug 1156425 - Allow Android test jobs to run for up to 90 minutes; r=RyanVM 2015-08-27 11:29:00 -06:00
Nick Alexander c1c9a1046e Bug 1195388 - Part 1: Make ANDROID_APK_{NAME,PACKAGE} moz.build variables. r=gps
This paves the way for defining additional Android packages in
moz.build, which is a step toward moving the special
mobile/android/base/Makefile.in aapt invocations into the generic
java-build.mk framework.

The new variables are both passthru variables for now: in the future,
we'll roll them into some aggregate Android APK definition.

It's worth noting that references to the variables in Makefile.in
files are only defined after including rules.mk (and thereby
backend.mk).  This only required a few changes in the tree but it
confused me for some time.
2015-08-19 12:34:58 -07:00
Jonathan Almeida [:jonalmeida] 42a1463622 Bug 948591 - Intermittent testClearPrivateData | Exception caught - junit.framework.AssertionFailedError: Text string: '^Settings$' is not found! r=mcomella 2015-08-17 00:00:00 -07:00
Nick Alexander d7fda0799f Bug 1160563 - Part 2: Make ANDROID_ASSETS_DIRS a moz.build variable. r=gps
We have had singular ANDROID_ASSETS_DIR in Makefile.in for a while.
Fennec itself does not use the existing Makefile.in Android code, for
complicated historical reasons.

This makes the existing variable moz.build-only; generalizes the
existing variable to an ordered list; and adds the equivalent use of
the new list to the Fennec build, with a simple example asset.

This patch also updates the packager to include assets packed into the
gecko.ap_.  Without the packager change, the assets/ directory in the
ap_ gets left out of the final apk.  This whole approach is totally
non-standard but is more or less required to support our single-locale
repack scheme.
2015-08-12 11:04:03 -07:00
Sebastian Kaspari 76b7252912 Bug 1186532 - Add RecyclerView library to Robocop builds. r=jonalmeida 2015-07-23 13:27:28 +02:00
Ryan VanderMeulen 9cac9325d0 Merge inbound to m-c. a=merge 2015-07-17 10:26:22 -04:00
Ryan VanderMeulen f33cbc4e91 Backed out changeset 7c44c0343564 (bug 1181020) for causing intermittent testAboutPage failures. 2015-07-16 15:11:20 -04:00
Jonathan Almeida f4a5222251 Bug 1181020 - Update Robocop to latest version to support RecyclerView. r=mcomella
- Removed old robotium jar in replace for the newer one.
 - Newer robotium has packaging changes which were updated in all tests.
 - Updated in build.gradle and makefile.
2015-07-07 14:18:56 -07:00
Geoff Brown 149d025aa3 Bug 1179981 - A new test harness for robocop; r=jmaher 2015-07-09 12:30:01 -06:00
Andrew Halberstadt 5c1241cd79 Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.
2015-07-16 10:38:40 -04:00
Julien Pagès 9bd7c862a6 Bug 1177780 - remove useless stuff in automation.py. r=jgriffin 2015-06-26 22:45:18 +02:00
Carsten "Tomcat" Book 3a969df593 merge mozilla-inbound to mozilla-central a=merge 2015-06-22 14:03:17 +02:00
Geoff Brown a43365762e Bug 1175540 - Reduce timeouts for many adb devicemanager calls; r=mcote 2015-06-21 13:58:34 -06:00
Jonathan Almeida eaf078912c Bug 1161820 - Replace all back button presses with Solo.goBack in tests. r=liuche CLOSED TREE 2015-06-17 17:24:48 -07:00
Nick Alexander a83978944b No bug - Make robocop.apk debuggable. r=me 2015-06-17 09:54:47 -07:00
Michael LoPiccolo 5cdfa5ec36 Bug 1168808 - Remove superflous call to getNextView(). r=mcomella 2015-05-29 13:24:05 -05:00
Nick Alexander f72af9b890 Bug 1169476 -- Implement |mach robocop --serve|. r=gbrown
This adds a flag to |mach robocop| that does everything to run a
Robocop test except launch the actual test.  Instead of launching the
test, it starts the mochi.test server and launches Fennec with a test
profile; then it sits and waits forever.

This allows regular Java IDEs (IntelliJ, but previously Eclipse) to
run Robocop tests like regular instrumentation tests, "injecting" them
into the prepared testing environment.  It's quite nice!
2015-05-29 17:18:07 -07:00
Geoff Brown c6447325fd Bug 1169503 - Allow sutagent to build on Android M; r=snorp 2015-05-29 14:42:59 -06:00
Sylvestre Ledru d633683a1b Bug 1168805 - "Useless call ".toLowerCase()" in SUTAgentAndroid.java". r=jmaher 2015-05-27 05:29:00 +02:00
Jonathan Griffin 6a378a43b9 Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Jonathan Griffin 0222886eb4 Backout cc15c275b1e3 (Bug 1149618) on a CLOSED TREE for suspected debug emulator bustage, a=bustage 2015-05-19 19:35:38 -07:00
Jonathan Griffin fc80647c21 Bug 1149618 - Remove SpecialPowers from Marionette, r=dburns 2015-05-18 16:36:15 -07:00
Geoff Brown 36416997c0 Bug 1156425 - Allow Android test jobs to run for up to 75 minutes; r=ryanvm 2015-05-04 10:32:46 -06:00
Nick Alexander e07cf9c87c Bug 938659 - Part 2: build system changes. r=mfinkle 2015-05-01 17:33:03 -07:00
Geoff Brown 1ca67d459a Bug 1160393 - Enable webrtc logging for android; r=bwc 2015-05-01 16:34:36 -06:00
Nick Alexander bb59d01d6e Bug 1160030 - Use TEST_HARNESS_FILES to install Robocop ini files. r=froydnj 2015-04-30 10:13:13 -07:00
Nick Alexander 8179a8dabe Bug 1160030 - Use TEST_HARNESS_FILES to install Robocop test files. r=froydnj 2015-04-29 21:40:21 -07:00
Nick Alexander f2d6eb86c1 Bug 1159390 - Set sharedUserId in robocop.apk. r=gbrown 2015-04-28 11:29:18 -07:00
Geoff Brown 4f9e0519a5 Bug 1156422 - Improve robustness of logcat collection in checkForCrashes; r=bc 2015-04-21 16:44:42 -06:00
Bhargav Chippada d3aebf0cb9 Bug 1112605 - FenneNativeElement "unable to find view" error should log human-readable view id. r=Margaret Leibovic 2015-03-05 04:56:00 +01:00
Richard Newman 2b1743a94b Bug 1077590 - Part 0: minor sanity fixes in FennecNativeDriver. r=gbrown 2015-01-11 17:18:14 -08:00
Nicholas Nethercote 84279946f2 Bug 1100851 - Tweak DMD to account for the fact that $DMD can now be undefined. r=glandium.
Now that defining $DMD is no longer necessary to run DMD, this patch does the
following.
- Removes all the places where we set DMD=1 (test harnesses, etc.)
- Still handles DMD=1, for backwards compatibility.
- Prints "$DMD is undefined" at DMD start-up if appropriate.
- Writes a |null| value for |dmdEnvVar| in the JSON if $DMD is undefined. Bumps
  the DMD output version number accordingly.
- Changes a bunch of the test files accordingly, including changing the mode of
  script-ignore-alloc-fns.json in order to test a case where $DMD is undefined.
2014-11-27 21:04:46 -08:00
Geoff Brown 6836e904aa Bug 1093137 - Log stack trace for Robocop exceptions; r=chmanchester 2014-12-01 20:37:09 -08:00