From Fedora Project Wiki

Revision as of 15:56, 1 February 2011 by Kparal (talk | contribs) (Created page with 'This page will help you set up an environment for AutoQA development. This guide documents approaches that we have found convenient, but of course you can do anything differe...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page will help you set up an environment for AutoQA development. This guide documents approaches that we have found convenient, but of course you can do anything differently, as you like.

Glossary

Local machine
the bare metal machine you have in front of you
AutoQA server
(virtual) machine that will serve as a server or a standalone test execution machine for you
AutoQA client
(virtual) machine that will serve as a client for your server

Checkout the code

On your local machine, checkout the source code:

$ git clone git://git.fedorahosted.org/autoqa.git 

You will do all the coding here, with your favorite tools.

Share the code

In order to have your latest code available also on the AutoQA server and the AutoQA client, you will export your development directory over NFS and mount it on those machines.

  • Install NFS service:
# yum install nfs-utils
# chkconfig nfs on
  • Put the following into /etc/exports:
/home/joe/autoqa    *(rw,all_squash,anonuid=500,anongid=500)

Replace the path with the correct one, replace UID and GID numbers with your UID and GID numbers, and optionally replace the star with a network subset definition for better security (e.g. 192.168.1.0/24 if your server and client are on that network subset).

  • Restart NFS service:
# service nfs restart

Install AutoQA server

  • Install a machine that you want to use as an AutoQA server. It may be a virtual machine. Then execute all the steps below on that new machine.
  • Remove autoqa package. We installed it in the first place just to easily install its dependencies. But because we want to develop it, we will install it from source code later on.
# yum remove autoqa
  • Mount your shared AutoQA checkout to this machine (adjust the IP address of your local machine and the path):
# yum install nfs-utils
# mkdir /autoqa
# echo "192.168.1.1:/home/joe/autoqa  /autoqa  nfs  defaults,soft,intr  0 0" >> /etc/fstab
# mount -a
  • Install AutoQA from source:
# cd /autoqa
# make clean install

Install AutoQA client

  • Install a machine that you want to use as an AutoQA client. It may be a virtual machine. Then execute all the steps below on that new machine.
  • Remove autoqa package. We installed it in the first place just to easily install its dependencies. But on the client we need just the AutoQA library, and that can be used easily from our shared AutoQA checkout.
# yum remove autoqa
  • Use the AutoQA library from the shared AutoQA checkout (adjust the IP address of your local machine and the path):
# yum install nfs-utils
# mkdir /autoqa
# echo "192.168.1.1:/home/joe/autoqa  /autoqa  nfs  defaults,soft,intr  0 0" >> /etc/fstab
# echo "/autoqa/lib/python  /usr/lib/python2.7/site-packages/autoqa  none  bind  0 0" >> /etc/fstab
# mount -a