Mobile/Fennec Chrome: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(New page: == Running Chrome tests on Fennec == Chrome tests are run just like mochitests except they have the --chrome flag set on the command line when launching. Out of the box, these do not run...)
 
Line 18: Line 18:
</pre>
</pre>


This is not very automated yet and I need to ensure it will run and produce identical results each time.  I will update this when I verify this method works for all tests repeated.
I have a basic python [[http://people.mozilla.com/~jmaher/fennec/run_chrome_chunked.py script]] which will achieve this.  I still need to clean it up and make it accept command line arguments as well as stitch the chunked log files together.

Revision as of 14:26, 6 December 2008

Running Chrome tests on Fennec

Chrome tests are run just like mochitests except they have the --chrome flag set on the command line when launching.

Out of the box, these do not run on the device. You can run them on the desktop version of fennec which means that we are running into resource issues on the device.

I have followed the methods of running mochitests and have started running the chrome tests one directory at a time. This is trickier as you cannot specify a directory via the command line. Instead, I do this:

cd _tests/testing/mochitest
cp -R chrome chrome.bak

## NOTE: you need to do the following steps in a look for each directory
## dirs: [content, docshell, dom, toolkit, widget]
rm -Rf chrome/*
cp -R chrome.bak/content chrome/
python runtests.py --appname=../../../../fennec --chrome --log-file=chrome_content.log --autorun --close-when-done

I have a basic python [script] which will achieve this. I still need to clean it up and make it accept command line arguments as well as stitch the chunked log files together.