On Tuesday, 28 October 2014 06:59:15 UTC-4, Daniel Stenberg  wrote:
> Hi friends!
> 
> I'm currently working on a networking patch for b2g (bug 1008091), but when I 
> send it on a try-run adventure I get cppunit test failures on the b2g 
> emulator.
> 
> So, I built my own emulator locally and I want to run the cppunit test to see 
> for myself what happens and track down the problem with my patch.
> 
> How do I run the cppunit tests like the try run do? My searches seem to fail 
> me.
> 
> -- 
> 
>   / daniel.haxx.se

This isn't as easy as it could be. I've filed Bug 1090276 to add a mach target 
for this. In the meantime, here goes:

First, you'll want stripped versions of the tests and libraries. This can be 
done by running make package and make package-tests from objdir-gecko. The 
unstripped versions will take a *long* time to push to the emulator and there 
many not be enough space for them.

To run the tests:
* cd gecko/testing
* virtualenv venv  # create a virtual environment
* . venv/bin/activate  # activate it
* python mozbase/setup_development.py  # install mozbase
* python remotecppunittests.py --with-b2g-emulator B2G_HOME --dm_trans=adb 
--xre-path ../../objdir-gecko/dist/b2g --localLib ../../objdir-gecko/dist/b2g 
../../objdir-gecko/dist/test-stage/cppunittests

B2G_HOME should be the root of your B2G checkout (e.g. ~/B2G). If you want to 
run a single test, you can pass in the path to it as the last argument rather 
than the path to the cppunittests directory.

Feel free to ping me on irc if you enounter any trouble, I'm dminor on #ateam.

Dan
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to