ReferencePlatforms/Test/Mac: Difference between revisions
Jump to navigation
Jump to search
Zachlipton (talk | contribs) No edit summary |
Zachlipton (talk | contribs) |
||
Line 1: | Line 1: | ||
= Talos configuration done on qm- | = Talos configuration done on qm-pmac04 = | ||
== OS Setup == | == OS Setup == | ||
Line 92: | Line 92: | ||
echo 'export PYTHONPATH="/tools/buildbot/lib/python2.5/site-packages:/tools/twisted/lib/python2.5/site-packages:/tools/twisted-corelib/python2.5/site-packages/:/tools/zope-interface/lib/python2.5/site-packages/"' >> ~buildbot/.bash_profile | echo 'export PYTHONPATH="/tools/buildbot/lib/python2.5/site-packages:/tools/twisted/lib/python2.5/site-packages:/tools/twisted-corelib/python2.5/site-packages/:/tools/zope-interface/lib/python2.5/site-packages/"' >> ~buildbot/.bash_profile | ||
echo 'export PATH="/tools/buildbot/bin:/tools/twisted/bin:/tools/twisted-core/bin:$PYTHONHOME/bin:$PATH"' >> ~buildbot/.bash_profile | echo 'export PATH="/tools/buildbot/bin:/tools/twisted/bin:/tools/twisted-core/bin:$PYTHONHOME/bin:$PATH"' >> ~buildbot/.bash_profile | ||
=qm-pmac01= | =qm-pmac01= |
Revision as of 17:01, 24 July 2007
Talos configuration done on qm-pmac04
OS Setup
- Change the resolution to 1024 x 768, 60 Hz, under System Preferences->Displays.
- Under System Preferences->Desktop&Screen Saver, set "Start Screen Saver" to 'never'
- Create a new admin-equiv account for the mozqa user using the standard password.
- Under System Preferences->Sharing->Apple Remote Desktop->Access Privileges change the VNC screen control password to the standard password. NOTE: your VNC session will drop when you do this. You'll need to reconnect with the new password.
- Under System Preferences->Software Update, turn off automatic update checking.
- Install the cltbld ssh key in ~/.ssh
XCode Installation
- The next step is to retrieve the Mac reference platform packages from CVS:
export CVS_RSH=ssh ocvs -d :ext:cltbld@cvs.mozilla.org:/mofo co ref-platforms/mac
- Mount the xcode_2.2.1_8g1165_018213632.dmg disk image by double clicking on it and and begin installing the XcodeTools.mpkg.
- When it comes time to choose the Installation Type, choose "Customize"
- Under "Cross-Development," select all the available SDKs, and then click "Install"
BuildBot Setup
Install Python 2.5
mkdir -p /tools/dist cd /tools/dist curl -O http://www.python.org/ftp/python/2.5/Python-2.5.tar.bz2 tar jxvf Python-2.5.tar.bz2 cd Python-2.5 ./configure --prefix=/tools/python make make test make install
Environment Setup
export PYTHONHOME="/tools/python" export PATH="/tools/python/bin:$PATH"
Installing Zope Interface
cd /tools/dist/ curl -O http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz tar xfvz zope.interface-3.3.0.tar.gz cd zope.interface-3.3.0/ python setup.py install --prefix=/tools/zope-interface-3.3.0 cd /tools; ln -s zope-interface-3.3.0/ zope-interface export PYTHONPATH="/tools/zope-interface/lib/python2.5/site-packages/:$PYTHONPATH"
Installing Twisted
cd /tools/dist/ curl -O http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/TwistedCore-2.4.0.tar.bz2 curl -O http://tmrc.mit.edu/mirror/twisted/Twisted/2.4/Twisted-2.4.0.tar.bz2 tar xfvj TwistedCore-2.4.0.tar.bz2 tar xfvj Twisted-2.4.0.tar.bz2 cd TwistedCore-2.4.0 python setup.py install --prefix=/tools/twisted-core-2.4.0 pushd /tools/; ln -s twisted-core-2.4.0/ twisted-core; popd export PYTHONPATH="/tools/twisted-core/lib/python2.5/site-packages:$PYTHONPATH" cd /tools/dist/Twisted-2.4.0/ python setup.py install --prefix=/tools/twisted-2.4.0 cd /tools; ln -s twisted-2.4.0 twisted export PYTHONPATH="/tools/twisted/lib/python2.5/site-packages/:$PYTHONPATH"
Installing BuildBot
export PATH="/tools/twisted/bin:/tools/twisted-core/bin:$PATH" cd /tools cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d buildbot-trunk mozilla/tools/buildbot cd /tools/buildbot-trunk export PYTHONPATH=.:$PYTHONPATH python setup.py install --prefix=/tools/buildbot-trunk cd /tools/dist cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -d botrunner mozilla/tools/botrunner.py cp botrunner/botrunner.py /tools/buildbot-trunk/bin/ rm -rf botrunner/ cd /tools; ln -s buildbot-trunk buildbot
Create the Buildbot User
sudo -s <enter the password>
mkdir /Users/buildbot/ niutil -create / /users/buildbot niutil -createprop / /users/buildbot uid 503 niutil -createprop / /users/buildbot gid 503 niutil -createprop / /users/buildbot realname "Buildbot" niutil -createprop / /users/buildbot home "/Users/buildbot" niutil -createprop / /users/buildbot shell "/bin/bash" niutil -createprop / /users/buildbot passwd "*" niutil -create / /groups/buildbot niutil -createprop / /groups/buildbot gid 503 passwd buildbot
Final Configuration
Add the appropriate paths to the Buildbot user's .bash_profile
echo 'export PYTHONHOME="/tools/python"' >> ~buildbot/.bash_profile echo 'export PYTHONPATH="/tools/buildbot/lib/python2.5/site-packages:/tools/twisted/lib/python2.5/site-packages:/tools/twisted-corelib/python2.5/site-packages/:/tools/zope-interface/lib/python2.5/site-packages/"' >> ~buildbot/.bash_profile echo 'export PATH="/tools/buildbot/bin:/tools/twisted/bin:/tools/twisted-core/bin:$PYTHONHOME/bin:$PATH"' >> ~buildbot/.bash_profile
qm-pmac01
Setup notes for qm-pmac01 (talos test box)
Syck 0.55 is installed on pmac01 for Talos. Should be installed on the other machines. Installed the main binary and the python extension:
- cd ext/python/
- python setup.py build
- sudo python setup.py install
pmac01 also has xcode and ports installed from the reference machine. Sharedmenuframeworks is not installed. Screensaver disabled.
For Talos to work on mac, the Subprocess module must be installed. Download subprocess.py from [1] and copy into /Library/Python/2.3/site-packages/. Be sure to save the file as 'subprocess.py' with a lowercase 's'.