m (moved Quality/QA-tools/TDriver/Tutorial to Quality/QA-tools/TDriver/Getting Started: Making name correlate with content) |
m |
||
| Line 1: | Line 1: | ||
| - | = Testability Driver (TDriver) tutorial = | + | = Testability Driver (TDriver) setup 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. | 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 from repositories == | |
| - | + | ||
| - | == 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 for QA-tools] 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. | ||
| Line 11: | Line 9: | ||
=== Ubuntu 10.04 === | === Ubuntu 10.04 === | ||
| - | ''' | + | '''Note - 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: | ||
<pre> | <pre> | ||
| - | + | sudo apt-get install rubygems ruby1.8-dev libxslt-dev libxml2-dev visualizer | |
</pre> | </pre> | ||
=== 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 | + | 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 the packages 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) | ||
<pre> | <pre> | ||
| - | + | 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 # Compilation will take a few minutes | |
</pre> | </pre> | ||
Install the ruby packges that were created: | Install the ruby packges that were created: | ||
<pre> | <pre> | ||
| - | + | cd ~ | |
| - | + | sudo yum localinstall --nogpgcheck \ | |
rpmbuild/*/*/ruby-1.8.7.*.rpm \ | rpmbuild/*/*/ruby-1.8.7.*.rpm \ | ||
rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm \ | rpmbuild/*/*/ruby-libs-1.8.7.302*.rpm \ | ||
| Line 47: | Line 45: | ||
<pre> | <pre> | ||
| - | + | rpmbuild --rebuild rubygems-*src.rpm | |
| - | + | sudo yum localinstall --nogpgcheck rpmbuild/*/*/rubygems-1.3.7*.noarch.rpm | |
</pre> | </pre> | ||
| Line 54: | Line 52: | ||
Install other requirements, required to build native dependencies for ruby gems: | Install other requirements, required to build native dependencies for ruby gems: | ||
<pre> | <pre> | ||
| - | + | sudo yum install libxslt-devel libxml2-devel | |
</pre> | </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. | ||
<pre> | <pre> | ||
| - | + | sudo gem install testability-driver-qt-sut-plugin # This will take a few minutes | |
</pre> | </pre> | ||
Try that it works | Try that it works | ||
<pre> | <pre> | ||
| - | + | export RUBYOPT="rubygems" # This should go to your login file e.g. .bashrc | |
| - | + | ruby -e "require 'tdriver'" # Should print nothing | |
| + | </pre> | ||
| + | |||
| + | |||
| + | === Ubuntu 10.04 === | ||
| + | To install visualizer: | ||
| + | <pre> | ||
| + | sudo apt-get install visualizer qttas-server | ||
| + | </pre> | ||
| + | |||
| + | === Fedora 13 === | ||
| + | sudo yum install --nogpgcheck testability-driver-visualizer qttas-server | ||
| + | |||
| + | == Testing the installation == | ||
| + | |||
| + | Everything should be now installed. | ||
| + | |||
| + | We need an application to test it with, so download one. Let's a classic calculator application. | ||
| + | |||
| + | Compilation: | ||
| + | <pre> | ||
| + | sudo yum install git qt4-qmake gcc-c++ | ||
| + | git clone http://git.gitorious.org/tdriver/tests.git | ||
| + | cd tests/calculator | ||
| + | qmake # in Fedora qmake-qt4 | ||
| + | make | ||
| + | </pre> | ||
| + | |||
| + | Start the qttas-server and the calculator | ||
| + | |||
| + | <pre> | ||
| + | qttas-server & | ||
| + | ./calculator & | ||
| + | </pre> | ||
| + | |||
| + | You should see a simple calculator application. Next, let's start the visualizer. | ||
| + | |||
| + | <pre> | ||
| + | tdriver_visualizer & | ||
</pre> | </pre> | ||
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.
Note - 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 visualizer
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 the packages 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 # Compilation will take a few minutes
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 the Testabiity Driver qt plugin. This will install everything required.
sudo gem install testability-driver-qt-sut-plugin # This will take a few minutes
Try that it works
export RUBYOPT="rubygems" # This should go to your login file e.g. .bashrc ruby -e "require 'tdriver'" # Should print nothing
To install visualizer:
sudo apt-get install visualizer qttas-server
sudo yum install --nogpgcheck testability-driver-visualizer qttas-server
Everything should be now installed.
We need an application to test it with, so download one. Let's a classic calculator application.
Compilation:
sudo yum install git qt4-qmake gcc-c++ git clone http://git.gitorious.org/tdriver/tests.git cd tests/calculator qmake # in Fedora qmake-qt4 make
Start the qttas-server and the calculator
qttas-server & ./calculator &
You should see a simple calculator application. Next, let's start the visualizer.
tdriver_visualizer &