CloudServices/Sync/FxSync/Developer/Building: Difference between revisions

Line 114: Line 114:
=== Using an Updated Client Library with mozilla-central builds ===
=== Using an Updated Client Library with mozilla-central builds ===


TODO
To run the client library from the <code>fx-sync</code> repository in a Firefox nightly or custom build, simply build and install it as an extension (see above). The <code>resource://services-*/</code> resource paths from the extension take precedence over the built-in ones.


=== Running Tests against mozilla-central builds ===
=== Running Tests against mozilla-central builds ===


TODO
You need a checkout of <code>mozilla-central</code> and a complete build located in an object dir (e.g. <code>obj-ff-dbg</code> below the checkout):
 
<pre>
export MOZILLA=/path/to/mozilla-central
export MOZ_OBJDIR=/path/to/obj-ff-dbg
</pre>
 
Then simply type
 
<pre>
make xpcshell-tests
</pre>
 
or
 
<pre>
make SOLO_FILE="test_resource.js" check-one
</pre>
 
to run an individual test. See <a href="https://developer.mozilla.org/en/Writing_xpcshell-based_unit_tests>Writing xpcshell-based unit tests</a> for more info.


== Interesting make targets ==
== Interesting make targets ==
canmove, Confirmed users
725

edits