1
edit
Changes
→Testing Scripts
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|The scripts I am using for running tests against my builds ( Oct 2nd, 2008 )
|-
|<precode>#!/bin/sh</code><br/><span style="color:green;">''####### the .mozconfig file to use for this build''</span><br /><code>export MOZCONFIG=/f/mozilla/.mozconfigPGO</code><br /><span style="color:green;">''####### the subdirectory trunk holds my src files''</span><br /><code>cd trunk</code><br /><span style="color:green;">''####### time the profile build and output stdout and stderr to files that are timestamped ''</span><br /><code>time make -f client.mk profiledbuild 1> /i/mozilla/pgo-output-`date +%s`.txt 2> /i/mozilla/pgo-errors-`date +%s`.txt''</code><br /><span style="color:green;">''####### after the build is completed done run the xpcshell tests and output stdout and stderr to file that are timestamped''</span><br /><code>make check 1> /i/mozilla/pgo-check-output-`date +%s`.txt 2> /i/mozilla/pgo-check-errors-`date +%s`.txt</code><br /><span style="color:green;">''####### change to the objdir directory then to the mochitest directory''</span><br /><code>cd /i/mozilla/ff-pgo/_tests/testing/mochitest </code><br /><span style="color:green;">''####### run the mochitest, run test right away, close the browser when done, log all output to a timestamped file''</span><br /><code>python runtests.py --autorun --close-when-done --log-file=/i/mozilla/pgo-mochitest-`date +%s`.log --file-level=DEBUG</precode>
|}
<br />
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|Here is the .mozconfig file ( Oct 2nd, 2008 )
|-
|<precode> . $topsrcdir/browser/config/mozconfig</code><br /><code>mk_add_options MOZ_OBJDIR=/i/mozilla/ff-pgo</code><br /><code>mk_add_options MOZ_MAKE_FLAGS=-j5</code><br /><span style="color:green;">''####### this is the script to run after the first build to gather profile data''</span><br /><code>mk_add_options PROFILE_GEN_SCRIPT="sh /f/mozilla/pgo.sh"</code><br /><code>ac_add_options --disable-vista-sdk-requirements</code><br /><span style="color:green;">''####### this has to be enabled to perform the mochitests''</span><br /><code>ac_add_options --enable-tests</code><br /><code>ac_add_options --disable-debug</code><br /><code>ac_add_options --disable-accessibility</precode>
|}
<br />
!align="left" style="background-color:#FF9933; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|Here is the script the profile build runs to gather profile data ( Oct 2nd, 2008 )
|-
|<pre>#!/bin/sh
export NO_EM_RESTART=1
mkdir $OBJDIR/_profileprofile
cd /i/mozilla/ff-pgo/_tests/testing/mochitest
python runtests.py --autorun --close-when-done --log-file=/i/mozilla/pgo-profile-mochitest-`date +%s`.log --file-level=DEBUG
|}
=== Related Bugs ===