QA/TDAI/RegressionRangeInstall: Difference between revisions
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
=Windows - option 1: Command Prompt= | =Windows - option 1: Command Prompt= | ||
* [http://www.python.org/ftp/python/2.6.4/python-2.6.4.msi Install Python 2.6.4] | * [http://www.python.org/ftp/python/2.6.4/python-2.6.4.msi Install Python 2.6.4] | ||
* [http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2. | * [http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/pywin32-214.win32-py2.6.exe/download Install PyWin32] | ||
* [http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11.win32-py2.6.exe#md5=1509752c3c2e64b5d0f9589aafe053dc Install Setup Tools] | * [http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11.win32-py2.6.exe#md5=1509752c3c2e64b5d0f9589aafe053dc Install Setup Tools] | ||
* Open the Command Prompt program (under Accessories) | * Open the Command Prompt program (under Accessories) | ||
* Enter this line into the prompt: <tt>path = %PATH%;C:\ | * Enter this line into the prompt: <tt>path = %PATH%;C:\Python26\Scripts;C:\Python26</tt> | ||
* Navigate the the regression folder, if this folder is on your Desktop, you can do this by entering <tt>cd Desktop\regression</tt> into the prompt. | * Navigate the the regression folder, if this folder is on your Desktop, you can do this by entering <tt>cd Desktop\regression</tt> into the prompt. | ||
* Now enter the command: <tt>install-windows.bat</tt> | * Now enter the command: <tt>install-windows.bat</tt> | ||
Line 13: | Line 13: | ||
Note: if you don't want to have to say <tt>path = %PATH%;C:\ | Note: if you don't want to have to say <tt>path = %PATH%;C:\Python26;%PATH%;C:\Python26\Scripts</tt> everytime you open the command prompt, you can add <tt>C:\Python26\Scripts;C:\Python26</tt> to your <tt>Path</tt> environment variable through the Control Panel (usually under advanced system settings) | ||
=Windows - option 2: Mozilla Build= | =Windows - option 2: Mozilla Build= |
Revision as of 01:22, 24 November 2009
First download regression.zip and unzip in the location of your choice (like the Desktop). Then follow the instructions for your platform:
Windows - option 1: Command Prompt
- Install Python 2.6.4
- Install PyWin32
- Install Setup Tools
- Open the Command Prompt program (under Accessories)
- Enter this line into the prompt: path = %PATH%;C:\Python26\Scripts;C:\Python26
- Navigate the the regression folder, if this folder is on your Desktop, you can do this by entering cd Desktop\regression into the prompt.
- Now enter the command: install-windows.bat
- You can now run regression.py from the Command Prompt:
python regression.py -g 2009-03-12 -b 2009-10-14
Note: if you don't want to have to say path = %PATH%;C:\Python26;%PATH%;C:\Python26\Scripts everytime you open the command prompt, you can add C:\Python26\Scripts;C:\Python26 to your Path environment variable through the Control Panel (usually under advanced system settings)
Windows - option 2: Mozilla Build
- Install Mozilla Build. This is a command line utility.
- Change Python's install path in the Windows Registry. You can open Registry Editor by entering regedit into the Windows Command Prompt program. You'll want to edit the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\InstallPath to be C:\mozilla-build\python25\ Note: you might have to change your permissions before you edit, by going to Edit>Permissions in the Registry Editor.
- Run Mozilla Build. this can usually be done by running C:\mozilla-build\start-l10n.bat
- navigate to the unzipped regression folder from this command line, for example: cd Desktop/regression
- execute the install script ./install-windows.sh This will install SetupTools, PyWin32, and some Python modules, so some installer windows might pop open, just install everything in the default location.
- you can now run regression.py with the command:
python regression.py -g 2009-03-12 -b 2009-10-14
Ubuntu
Run these commands:
sudo apt-get install python-setuptools easy_install mozmill easy_install BeautifulSoup easy_install httplib2
Now, cd into the unzipped regression folder and run the regression script:
python regression.py -g 2009-03-12 -b 2009-10-14