I haven't had time to implement the xpcshell target yet. It's on my todo
list, but currently it's lower priority than some other stuff I'm
working on at the moment.
In the meantime you can find the old (slightly painful) instructions
here:
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Platform/Automated_testing/XPCShell
Cheers,
Andrew
On 09/25/2013 12:07 AM, Szu-Yu Chen wrote:
Hi Andrew,
Another question. How to run the xpcshell-test by mach? I don't find
the related command.
I have tried './mach xpcshell-remote', './mach xpcshelltest-remote',
but both of them failed.
My './mach help' shows
=====
Testing:
Run tests.
crashtest-remote Run a remote crashtest.
mochitest-remote Run a remote mochitest.
reftest-remote Run a remote reftest.
=====
Do I miss something? The 'xpcshell-remote' is not in the list.
Best regards,
Aknow
--
Szu-Yu Chen (Aknow) 陳思佑
Mozilla Taiwan
------------------------------------------------------------------------
*From: *"Andrew Halberstadt" <[email protected]>
*To: *[email protected]
*Sent: *Wednesday, September 25, 2013 4:21:33 AM
*Subject: *Re: [b2g] Mach for b2g emulator unittests
For the record, this is bug 920056.
On 09/24/2013 10:05 AM, Andrew Halberstadt wrote:
> Ah good to know, I assumed .userconfig was basically the same thing as
> .config. For now I can probably just stop parsing .userconfig as I don't
> think any of the mach commands currently implemented would need anything
> from there. But longer term I should probably just source load-config
> itself. I'll file a bug and cc you.
>
> Thanks!
> Andrew
>
> On 09/24/2013 05:30 AM, Szu-Yu Chen wrote:
>> Hi Andrew,
>>
>> I got some problems because of the format of '.userconfig'.
>>
>> In mach_b2g_bootstrap.py [1], we are parsing '.config' and
>> '.userconfig' into key/value pairs and set them into environment.
>> However the format of '.userconfig' is not so simple [2].
>> Alos, we might use variable expansion, if/else, and also other bash
>> format (take a look for my .userconfig [3])
>> I suggest not parsing '.userconfig' in python and let it being handled
>> by bash itself. I have some modification for this [4].
>> The limitation of the solution is that we should use "*export*
>> KEY=VALUE" so that the newly environment vars could be appeared in the
>> output of 'env'.
>>
>> Any suggestion for this part?
>>
>> [1]
>>
https://github.com/mozilla-b2g/B2G/blob/master/tools/mach_b2g_bootstrap.py#L178
>>
>> [2]
>>
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Customization_with_the_.userconfig_file
>>
>> [3] https://gist.github.com/aknow/6682409
>> [4]
https://gist.github.com/aknow/6681883#file-mach_b2g_bootstrap-py-L178
>>
>> Best regards,
>> Aknow
>> --
>> Szu-Yu Chen (Aknow) 陳思佑
>> Mozilla Taiwan
>>
>>
------------------------------------------------------------------------
>> *From: *"Andrew Halberstadt" <[email protected]>
>> *To: *[email protected]
>> *Sent: *Tuesday, September 17, 2013 2:58:50 AM
>> *Subject: *[b2g] Mach for b2g emulator unittests
>>
>> Running mochitests/reftests/xpcshell on a B2G emulator has been a
bit of
>> a struggle in the past. As of now, if you have an emulator configured
>> and built, you can simply run './mach mochitest-remote' (or ./mach help
>> mochitest-remote for additional arguments). Substitute 'mochitest' with
>> 'reftest', 'crashtest' or 'xpcshell' to run those suites.
>>
>> For more details, see my blog post:
>> http://ahal.ca/blog/2013/running-b2g-unittests-mach/
>>
>> Don't hesitate to ping me if you have problems or questions.
>>
>> Cheers,
>> Andrew
>> _______________________________________________
>> dev-b2g mailing list
>> [email protected]
>> https://lists.mozilla.org/listinfo/dev-b2g
>>
>
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g