(→OTS server installation) |
(→OTS worker installation) |
||
| Line 123: | Line 123: | ||
* Start OTS worker | * Start OTS worker | ||
ots_worker | ots_worker | ||
| + | |||
| + | NOTE: if worker failed to start up with error like "socket.error: [Errno 113] No route to host", plz check if telnet service is available on ots server. telnet_server is not installed by default. | ||
== OTS tools == | == OTS tools == | ||
Contents |
These instructions have been tested with Fedora 13. Execute commands as root.
In MeeGo netbook, at least following packages needs to be installed manually:
python-amqp, python-django, minixsv, rabbitmq-server
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.
cd /etc/yum.repos.d/ yum install wget nano wget http://download.meego.com/live/Tools:/Testing/Fedora13/Tools:Testing.repo
yum check-update
Build packages from source (optional)
yum install git-core
git clone git://gitorious.org/meego-quality-assurance/ots.git
yum rpm-build python-setuptools
mv ots python-ots-0.8.x tar czf python-ots-0.8.x.tar.gz python-ots-0.8.x rpmbuild -tb python-ots-0.8.x.tar.gz
yum install Django python-amqplib python-configobj rabbitmq-server test-definition easy_install minixsv yum install python-setuptools
yum install python-ots-common python-ots-results python-ots-server
or if you are using own built packages
rpm -i ...
chkconfig --add rabbitmq-server chkconfig rabbitmq-server on
/etc/init.d/rabbitmq-server start
sudo nano /etc/ots_server.ini
Recommended to change following:
'example_sw_product', example to 'meego_product' 'devicegroup', example to 'meego_n900'
yum install httpd mod_wsgi rm /etc/httpd/conf.d/welcome.conf
yum install python-ots-plugin-logger
Copy the apache config from the plug-in page to /etc/httpd/conf.d/ots.conf
cp -r /usr/share/ots/plugin/logger/* /var/www
Install django_xmlrpc to /usr/lib/python2.6/site-packages/
chcon -R -t httpd_user_content_t /usr/lib/python2.6/site-packages/django_xmlrpc chcon -R -t httpd_user_content_t /opt/ots setsebool httpd_unified 1 NOTE: make sure selinux is enabled chown apache /var/log/ots chown apache /opt/ots chown apache /opt/ots/*
chkconfig --add httpd chkconfig httpd on
/etc/init.d/httpd start
Email plug-in (recommended)
yum install python-ots-plugin-email
See more plug-ins from OTS Plug-ins
ots_server
yum install python-amqplib testrunner-lite
yum 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
NOTE: if worker failed to start up with error like "socket.error: [Errno 113] No route to host", plz check if telnet service is available on ots server. telnet_server is not installed by default.
Tools are used for triggering test runs from the command line.
yum install python-ots-tools
ots_trigger -s localhost:8080 -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
yum install meego-ai-flaster eat-host
http://tablets-dev.nokia.com/maemo-dev-env-downloads.php?f=maemo_flasher-3.5_2.5.2.2.tar.gz Compile the flasher
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