ReferencePlatforms/Test/Linux: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 50: Line 50:
Make vnc start on boot by adding the following to mozqa's crontab:
Make vnc start on boot by adding the following to mozqa's crontab:
  @reboot          x11vnc -display :0 -shared -forever -rfbauth /home/mozqa/.vnc/passwd -bg
  @reboot          x11vnc -display :0 -shared -forever -rfbauth /home/mozqa/.vnc/passwd -bg
== Setting up a Talos Buildbot Slave ==
How to setup a Buildbot Talos slave (replace the master.host, username, and password with the correct values)
cd ~
mkdir talos-slave
buildbot create-slave talos-slave master.host:9989 username password
You should then start the slave once to create the proper directory structure.
buildbot start talos-slave
buildbot stop talos-slave


== Configure Apache ==
== Configure Apache ==
=== Talos page set and framecycler ===
=== Pageset ===
cd ~
You will need to install a pageset in /home/mozqa/pages
cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d talos mozilla/testing/performance/talos
You will need to install a page set in ~/talos/page_load_test.<br />
If you are using the new (chrome based) pageloader, do the following:
cd ~/talos/page_load_test
wget http://people.mozilla.com/~bhearsum/QA/Talos/Ref-Platform-Files/tpcomponent.zip
unzip tpcomponent.zip
rm tpcomponent.zip
=== The rest ===
=== The rest ===
Open /etc/apache2/sites-available/default and change the DocumentRoot and second <Directory> tag to '/home/mozqa/talos'.
Open /etc/apache2/sites-available/default and change the DocumentRoot and second <Directory> tag to '/home/mozqa/talos'.
Open up /etc/apache2/conf.d/charset and comment out the AddCharset line as so:
Open up /etc/apache2/conf.d/charset and comment out the AddCharset line as so:
  #AddDefaultCharset UTF-8
  #AddDefaultCharset UTF-8
Add an alias so Apache knows where the pageset is. Add this to your configuration file:
Alias /page_load_test/pages /home/mozqa/pages
<Directory /home/mozqa/pages>
    Options Indexes
    Order allow,deny
    Allow from all
</Directory>
Restart Apache
Restart Apache
  /etc/init.d/apache2 restart
  /etc/init.d/apache2 restart
Test the installation by browsing to 'http://localhost/page_load_test/framecycler.html'. The browser should cycle through many pages rapidly.
Test the installation by browsing to 'http://localhost/page_load_test/framecycler.html'. The browser should cycle through many pages rapidly.


== Setting up a Talos Buildbot Slave ==
How to setup a Buildbot Talos slave (replace the master.host, username, and password with the correct values)
cd ~
mkdir talos-slave
buildbot create-slave talos-slave master.host:9989 username password
You should then start the slave once to create the proper directory structure.
buildbot start talos-slave
buildbot stop talos-slave
The "build directory" will have been created at this point. Talos needs to be checked out into that directory. Open a command line and cd to it, then run the following command:
cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d talos mozilla/testing/performance/talos


= Updating Talos =
= Updating Talos =
When you need to update Talos to the latest in cvs you will have to update both the Apache copy and the Buildbot copy. To do this, do the following (replacing $WORKDIR with the right value):
Assuming your Buildbot master configuration is proper, Buildbot will automatically update Talos on every performance run. If the pageset is updated, you will need to refresh /home/mozqa/pages.
cd ~/talos
cvs up
cd ~/talos-slave/$WORKDIR/talos
cvs up
You do not need to restart Apache or Buildbot after this.
canmove, Confirmed users
6,441

edits

Navigation menu