m |
m (moved Quality/QA-tools/TDriver/Tutorial to Quality/QA-tools/TDriver/Getting Started: Making name correlate with content) |
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.
First wee need to enable the Testing:Tools repository. See the How to set up repositories for QA-tools guide.
You cannot use the Ubuntu 10.04 repository in 10.10. The version is compiled agains Qt 4.6, which is not compatible
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/*/*/ruby-irb-1.8.7.302*.noarch.rpm \
rpmbuild/*/*/ruby-rdoc-1.8.7.302*.noarch.rpm
Next we need rubygems:
# rpmbuild --rebuild rubygems-*src.rpm # sudo yum localinstall --nogpgcheck rpmbuild/*/*/rubygems-1.3.7*.noarch.rpm
Install other requirements, required to build native dependencies for ruby gems:
# sudo yum install libxslt-devel libxml2-devel
Install ruby gems and xml libraries:
# sudo yum install rubygems libxslt-devel libxml2-dev ruby-devel
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