Meego Wiki
Views

Quality/QA-tools/TDriver/Getting Started

From MeeGo wiki
(Difference between revisions)
Jump to: navigation, search
m
m
Line 3: Line 3:
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.
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 ==
== Installing required packages ==
-
First wee need to enable the Testing:Tools repository. See the [http://wiki.meego.com/Quality/QA-tools/How_to_set_up_repositories How to set up repositories] guide.
+
First wee need to enable the Testing:Tools repository. See the [http://wiki.meego.com/Quality/QA-tools/How_to_set_up_repositories How to set up repositories for QA-tools] guide.
=== Ubuntu 10.04 ===  
=== Ubuntu 10.04 ===  
 +
 +
'''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:
TDriver requires Rubygems and xml libraries:
Line 19: Line 20:
=== Fedora 13 ===  
=== 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 [https://github.com/leamas/diaspora/downloads here]).
+
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 [https://github.com/leamas/diaspora/downloads here]).  
Compiling ruby (skip this if you downloaded the packages)
Compiling ruby (skip this if you downloaded the packages)
Line 39: Line 40:
                     rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm    \
                     rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm    \
                     rpmbuild/*/*/ruby-devel-1.8.7.302*.rpm  \
                     rpmbuild/*/*/ruby-devel-1.8.7.302*.rpm  \
-
                     rpmbuild/*/*/noarch/ruby-irb-1.8.7.302*.noarch.rpm \
+
                     rpmbuild/*/*/ruby-irb-1.8.7.302*.noarch.rpm \
-
                     rpmbuild/*/*/noarch/ruby-rdoc-1.8.7.302*.noarch.rpm
+
                     rpmbuild/*/*/ruby-rdoc-1.8.7.302*.noarch.rpm
</pre>
</pre>
 +
Next we need rubygems:
 +
<pre>
 +
# rpmbuild --rebuild rubygems-*src.rpm
 +
# sudo yum localinstall --nogpgcheck rpmbuild/*/*/rubygems-1.3.7*.noarch.rpm
 +
</pre>
-
# sudo yum install rubygems xslt-devel xml2-devel
+
 
 +
Install other requirements, required to build native dependencies for ruby gems:
 +
<pre>
 +
# sudo yum install libxslt-devel libxml2-devel
 +
</pre>
=== Fedora 14 ===  
=== Fedora 14 ===  
-
# sudo yum install rubygems  
+
Install ruby gems and xml libraries:
 +
<pre>
 +
# sudo yum install rubygems libxslt-devel libxml2-dev ruby-devel
 +
</pre>
-
=== Installing TDriver ===  
+
== Installing TDriver ==  
Install the Testabiity Driver qt plugin. This will install everything required.
Install the Testabiity Driver qt plugin. This will install everything required.

Revision as of 11:53, 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.


Installing required packages

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

Ubuntu 10.04

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 

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/*/*/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

Fedora 14

Install ruby gems and xml libraries:

# sudo yum install rubygems libxslt-devel libxml2-dev ruby-devel

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