Contents |
Using static IP addresses on all OTS machines is strongly recommended. It is possible to setup the system also with dynamic IP addresses but it might cause problems every now and then because IP's and hostnames change.
All OTS machines need to be able to access other OTS machines based on their hostname.
There are two ways of getting OTS binary packages: from the source code or from the MeeGo Tools:Testing repository. From the repository you can get the stable version and from the source code the development version.
sudo nano /etc/apt/sources.list deb http://download.meego.com/live/Tools:/Testing/xUbuntu_10.10/ /
Notice that if you are using Ubuntu 10.04, change the path.
gpg --keyserver subkeys.pgp.net --recv-keys 0BC7BEC479FC1F8A gpg --export --armor 0BC7BEC479FC1F8A | sudo apt-key add -
sudo apt-get update
Build packages from source (optional)
sudo apt-get install git-core
git clone git://gitorious.org/meego-quality-assurance/ots.git
sudo apt-get install dpkg-dev debhelper python-setuptools
cd ots dpkg-buildpackage -rfakeroot
sudo apt-get install python-django python-amqplib python-configobj rabbitmq-server test-definition
sudo apt-get install python-ots-common python-ots-results python-ots-server
Or if you are using own built packages
sudo dpkg -i ...
sudo nano /etc/ots_server.ini
Recommended to change following:
'example_sw_product', example to 'meego_product' 'devicegroup', example to 'meego_n900'
Logger plug-in (recommended) Email plug-in (recommended)
See more plug-ins from OTS Plug-ins
Change permissions to logging directory sudo chown www-data:www-data /var/log/ots
Now the OTS server can be used via apache (django_xmlrpc).
Change user permissions to logging directory sudo chown <user>:<group> /var/log/ots
ots_server
sudo apt-get install python-amqplib testrunner-lite
sudo apt-get install python-ots-common python-ots-worker
sudo nano /etc/ots.ini
Change 'devicegroup', example meego_n900
Change 'host' to server's address
sudo chown <user>:<group> /var/log/ots.log
ots_worker
Tools are used for triggering test runs from the command line.
sudo apt-get install python-ots-tools
ots_trigger -s localhost/xmlrpc -b test_build -i http://url_to_image -p example_sw_product -e test@man.com
http://meego.gitorious.org/meego-quality-assurance/enables-automated-testing/blobs/ks/meego-n900-autotest.ks
--save-kernel --package=tar.gz
sudo apt-get install meego-ai-flaster eat-host-ubuntu
http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2_i386.deb sudo dpkg -i maemo_flasher-3.5_2.5.2.2_i386.deb
sudo nano /etc/conductor.conf
install-eat-key.sh
sudo nano /etc/udev/rules.d/meego-n900.rules
SUBSYSTEMS=="usb", ATTR{idVendor}=="0421", ATTR{idProduct}=="0105", GROUP="<group>", MODE="0664"
sudo nano /usr/bin/power_cycle.sh
#!/bin/bash hat_drv & hat_ctrl -pwr1=off hat_ctrl -usb1data=off hat_ctrl -usb1pwr=off sleep 2; hat_ctrl -usb1pwr=on hat_ctrl -usb1data=on hat_ctrl -pwr1=on killall hat_drv
conductor -u <image url>
ots_worker