Contents |
This page describes the installation of the Testability Driver on your host machine. Currently supported hosts are Fedora 13 and Ubuntu 10.04. Repositories for newer versions will be available as soon as they are available in obs.
You cannot use the Ubuntu 10.04 repository in 10.10. The version is compiled agains Qt 4.6, which is not compatible
First wee need to enable the Testing:Tools repository. See the How to set up repositories guide.
TDriver requires Rubygems and xml libraries:
$ sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev
Unfortunately Fedora 13 does not have the required Ruby 1.8.7, so we need to compile and install it first. (If you do not want to compile it yourself, you can download it from here).
Compiling ruby (skip this if you downloaded the packages)
# sudo yum install rpmdevtools # # rpmdev-setuptree # sudo yum install yum-utils fedora-release-rawhide gcc # yumdownloader --enablerepo=rawhide --source ruby rubygems # sudo yum install $( rpm -qRp ruby-*src.rpm | grep -v rpmlib) gcc-g++ # rpmbuild --rebuild ruby-*src.rpm # Will take a while
Install the ruby packges that were created:
# cd ~
# sudo yum localinstall --nogpgcheck \
rpmbuild/*/*/ruby-1.8.7.*.rpm \
rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm \
rpmbuild/*/*/ruby-devel-1.8.7.302*.rpm \
rpmbuild/*/*/noarch/ruby-irb-1.8.7.302*.noarch.rpm \
rpmbuild/*/*/noarch/ruby-rdoc-1.8.7.302*.noarch.rpm
Install the Testabiity Driver qt plugin. This will install everything required.
# sudo gem install testability-driver-qt-sut-plugin
Try that it works
# export RUBYOPT="rubygems" # This should go to your login file e.g. .bashrc # ruby -e "require 'tdriver'" # Should print nothing