Thanks Sam. What I've been doing so far is running the tests on a desktop build removing the corresponding #ifdef MOZ_B2G where needed. Probably even a worst hack :|. But now I have to reproduce TBPL errors on emulators, so it would help being able to reproduce them locally with a similar environment.
On Fri, Oct 3, 2014 at 4:57 PM, Sam Penrose <spenr...@mozilla.com> wrote: > I've been running individual tests, and directories of tests, by > overriding is_platform_supported() in testing/xpcshell/mach_commands.py. > That's obviously a vicious hack, but it has given me an effective > edit/run/read loop for some code I manage in services/ . I'd love to > understand the underlying machinery better. > > ----- Original Message ----- > > From: "Jonathan Griffin" <jgrif...@mozilla.com> > > To: "Fernando Jiménez Moreno" <ferjmor...@gmail.com>, > dev-b2g@lists.mozilla.org, ahalberst...@mozilla.com > > Sent: Friday, October 3, 2014 7:47:39 AM > > Subject: Re: [b2g] Running XPCShell tests on B2G emulator > > > > You're missing the --busybox parameter. Without busybox, the harness > > has to transfer each file individually, which takes a long time. > > > > You can download busybox from e.g., > > http://busybox.net/downloads/binaries/1.19.0/busybox-armv6l > > > > Jonathan > > > > On 10/3/2014 4:18 AM, Fernando Jiménez Moreno wrote: > > > Hi, > > > > > > what's the best way to run XPCShell tests on the B2G emulator? > > > > > > In the past I managed to workaround the need of running these tests > > > locally. But now I really have no other choice and I am having a > > > really hard time trying to run them locally. I am following the guide > > > at [1], but I found several issues, like [2] not existing anymore for > > > instance. > > > > > > After struggling to install all the dependencies I think I managed to > > > trigger the XPCShell tests machinery with the following command: > > > > > > runtestsb2g.py > > > --adbpath=/ssd/dev/mozilla/B2G/out/host/darwin-x86/bin/adb > > > --b2gpath=/ssd/dev/mozilla/B2G --emulator=arm > > > > --manifest=/ssd/dev/mozilla/objdirs/objdir-mozilla-inbound-emulator-kk/dist/test-stage/xpcshell/tests/xpcshell_b2g.ini > > > --use-device-libs --test-path=services/mobileid/tests/xpcshell > > > > > > It seems that test-path is not working as it is currently pushing all > > > the tests to the emulator. I am waiting for almost one hour now and it > > > is still pushing stuff... > > > > > > I'd like to know if there's an easier and quicker way to run a single > > > XPCShell tests on a B2G emulator. > > > > > > Thanks, > > > > > > / Fernando > > > > > > [1] > > > > https://developer.mozilla.org/en-US/Firefox_OS/Platform/Automated_testing/XPCShell#Running_xpcshell_tests_with_a_downloaded_emulator > > > [2] > > > http://people.mozilla.org/~ahalberstadt/runxpcshell-requirements.txt > > > < > http://people.mozilla.org/%7Eahalberstadt/runxpcshell-requirements.txt> > > > > _______________________________________________ > > dev-b2g mailing list > > dev-b2g@lists.mozilla.org > > https://lists.mozilla.org/listinfo/dev-b2g > > >
_______________________________________________ dev-b2g mailing list dev-b2g@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-b2g