Confirmed users
905
edits
Andreea.pod (talk | contribs) |
No edit summary |
||
| Line 4: | Line 4: | ||
= Steps to setup enviroment and start running tests= | = Steps to setup enviroment and start running tests= | ||
Note: To make things easyer you can run '''$sudo su''' in the Terminal you use so that all commands are run in admin mode and you do not need to add sudo befoare each command but '''make sure you are careful with what you run in the terminal as admin mode will allow you to make changes to core file system''' | '''Note''': | ||
* To make things easyer you can run '''$sudo su''' in the Terminal you use so that all commands are run in admin mode and you do not need to add sudo befoare each command but '''make sure you are careful with what you run in the terminal as admin mode will allow you to make changes to core file system''' | |||
* If in the terminal you run "sudo su" remove the sudo command used before each command found here | |||
* '''Do not run sudo mode when working with hg''' | |||
* [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Robocop_automation_setup#Install_Java_and_kDiff Install Java and kDiff] | * [https://wiki.mozilla.org/QA_SoftVision_Team/Mobile/Robocop_automation_setup#Install_Java_and_kDiff Install Java and kDiff] | ||
| Line 42: | Line 45: | ||
* ccache will help spead up the compilation process when recompilating newer versions of the code | * ccache will help spead up the compilation process when recompilating newer versions of the code | ||
* Run in terminal | * Run in terminal | ||
apt-get install ccache | sudo apt-get install ccache | ||
* Add ccache to the PATH variable | * Add ccache to the PATH variable | ||
export PATH=/usr/lib/ccache:$PATH | sudo export PATH=/usr/lib/ccache:$PATH | ||
== Install Mercurial == | == Install Mercurial == | ||
| Line 166: | Line 169: | ||
. $topsrcdir/browser/config/mozconfig | . $topsrcdir/browser/config/mozconfig | ||
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-android | mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-android | ||
mk_add_options MOZ_MAKE_FLAGS="-s - | mk_add_options MOZ_MAKE_FLAGS="-s -j4" | ||
ac_add_options --enable-debug | ac_add_options --enable-debug | ||
ac_add_options --disable-optimize | ac_add_options --disable-optimize | ||
| Line 194: | Line 197: | ||
=== Make the builds === | === Make the builds === | ||
* run command in the source directory for each build | * run command in the source directory for each build | ||
make -f client.mk | * make sure the PATH variable is updated with the path to the Android SDK in each terminal | ||
sudo make -f client.mk | |||
=== Make the Android package === | === Make the Android package === | ||
cd obj-android/ | cd obj-android/ | ||
make package | sudo make package | ||
=== Install the package on Android === | === Install the package on Android === | ||
| Line 215: | Line 219: | ||
=== Running all the tests === | === Running all the tests === | ||
* Run command from the object directory under the Firefox mobile source repository | * Run command from the object directory under the Firefox mobile source repository | ||
make mochitest-robotium | sudo make mochitest-robotium | ||
=== Running a single test === | === Running a single test === | ||
* testLoad is the name of one of the tests | * testLoad is the name of one of the tests | ||
TEST_PATH=testLoad make mochitest-robotium | sudo TEST_PATH=testLoad make mochitest-robotium | ||
=== Copy the terminal to a file for test results logging === | === Copy the terminal to a file for test results logging === | ||
make mochitest-robotium | tee logfile.txt | sudo make mochitest-robotium | tee logfile.txt | ||
or | or | ||
TEST_PATH=testLoad make mochitest-robotium | tee logfile.txt | sudo TEST_PATH=testLoad make mochitest-robotium | tee logfile.txt | ||