Meego Wiki
Views

Quality/QA-tools/TDriver/Getting Started

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 36: Line 36:
# cd ~
# cd ~
# sudo yum localinstall --nogpgcheck  \
# sudo yum localinstall --nogpgcheck  \
-
                     rpmbuild/*/*/ruby-1.8.7.*.i686.rpm        \
+
                     rpmbuild/*/*/ruby-1.8.7.*.rpm        \
-
                     rpmbuild/*/*/ruby-libs-1.8.7.302*.i686.rpm    \
+
                     rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm    \
-
                     rpmbuild/*/*/ruby-devel-1.8.7.302*.i686.rpm  \
+
                     rpmbuild/*/*/ruby-devel-1.8.7.302*.rpm  \
                     rpmbuild/*/*/noarch/ruby-irb-1.8.7.302*.noarch.rpm \
                     rpmbuild/*/*/noarch/ruby-irb-1.8.7.302*.noarch.rpm \
                     rpmbuild/*/*/noarch/ruby-rdoc-1.8.7.302*.noarch.rpm
                     rpmbuild/*/*/noarch/ruby-rdoc-1.8.7.302*.noarch.rpm

Revision as of 11:39, 24 November 2010

Contents

Testability Driver (TDriver) tutorial

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


Installing required packages

First wee need to enable the Testing:Tools repository. See the How to set up repositories guide.

Ubuntu 10.04

TDriver requires Rubygems and xml libraries:

$ sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev 

Fedora 13

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


  1. sudo yum install rubygems xslt-devel xml2-devel

Fedora 14

  1. sudo yum install rubygems

Installing TDriver

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
Personal tools