MailNews:Memory Bloat and Leak Tests: Difference between revisions

Jump to navigation Jump to search
Update for current version
(→‎Code Locations: Add setUpBloatTest.py to the list of files.)
(Update for current version)
Line 59: Line 59:
#* ac_add_options --enable-debug
#* ac_add_options --enable-debug
#* ac_add_options --enable-trace-malloc
#* ac_add_options --enable-trace-malloc
# Copy the following two files in <objdir>/dist/bin/chrome of your build:
#* mozilla/testing/mailnews/bloat/bloatTestOverlay.js
#* mozilla/testing/mailnews/bloat/bloatTestOverlay.xul
# Create a text file called "mailnewstest.manifest" in the <objdir>/dist/bin/chrome directory of your build.
# Fill the text file with the following (replacing the /path/to/objdir with the correct path):
<pre>
content mailnewstest file:////path/to/objdir/dist/bin/chrome/
overlay chrome://messenger/content/messenger.xul chrome://mailnewstest/content/bloatTestOverlay.xul
overlay chrome://messenger/content/addressbook/addressbook.xul chrome://mailnewstest/content/bloatTestOverlay.xul
overlay chrome://messenger/content/messengercompose/messengercompose.xul chrome://mailnewstest/content/bloatTestOverlay.xul
</pre>
You will now be able to run SeaMonkey or Thunderbird from the object directory and the automation suite will run (but you won't get the leak or bloat output). If you want the profile set up to match as well, see the section below.


==== Profile Set Up ====
==== Profile Set Up ====
Line 78: Line 64:
# Enter the executable directory. Use the command:
# Enter the executable directory. Use the command:
#* <executable_name> -createProfile <profilename>
#* <executable_name> -createProfile <profilename>
# Now go into the mozilla/testing/mailnews/bloat directory and run the command:
# Now go into the /mailnews/test/performance/bloat directory and run the command:
#* python setUpBloatTest.py --binary-dir=<directory where executable is> --profile-dir=<directory for profile created in step 1>
#* python setUpBloatTest.py --binary-dir=<directory where executable is> --profile-dir=<directory for profile created in step 1>


Line 103: Line 89:
== Code Locations ==
== Code Locations ==


The existing [http://mxr.mozilla.org/seamonkey/source/tools/tinderbox/ tinderbox code] will be used to drive the tests, this may require migrating to [[Buildbot]] at an appropriate stage.
The code used to drive this will be in [[Buildbot]].


The files specific to mailnews testing will be stored in:
The files specific to mailnews testing will be stored in:


/mozilla/testing/mailnews/bloat/
/mailnews/test/performance/


These files consist of:
These files consist of:


* An overlay (bloatTestOverlay.xul) which is used to overlay the main windows and loads bloatTestOverlay.js
* Overlays (used to provide the hooks for the javascript):
* A script (bloatTestOverlay.js) which is used to drive the actual tests.
** bloat/bloatAddrOverlay.xul
* A python script (setUpBloatTest.py) which is used to set up the profile in the required format.
** bloat/bloatComposeOverlay.xul
** bloat/bloatMainOverlay.xul
* Javascript files (used to drive the tests):
** bloat/bloatAddrOverlay.js
** bloat/bloatComposeOverlay.js
** bloat/bloatMainOverlay.js
* Preference Settings (used to provide a defined profile, see below):
** common/mailnewsTestPrefs.js
* Python scripts (used to set up the profile):
** bloat/setUpBloatTest.py
** common/setUpCommonMailNews.py


They can currently be found in {{bug|427980}}
They can currently be found in {{bug|427980}}
canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,628

edits

Navigation menu