Skip to content

Latest commit

 

History

History
120 lines (109 loc) · 4.21 KB

INSTALL.asciidoc

File metadata and controls

120 lines (109 loc) · 4.21 KB

pragmatic development environment on openSUSE

  1. install openQA package to get all the runtime dependencies as described in the openQA installation guide

  2. check out os-autoinst

    git clone YOUR-WRITEABLE-COPY-OF/os-autoinst.git
    cd os-autoinst
  3. install the build requirements as visible in dist/rpm/os-autoinst.spec or if you have the openSUSE repositories added:

    sudo zypper in os-autoinst-devel
  4. build the beastie locally

    autoreconf -f -i
    ./configure
    make
  5. get the test cases and the needles.

    The needles have to be a subdir of the test cases!

    mkdir distri
    cd distri
    git clone git@github.com:os-autoinst/os-autoinst-distri-opensuse.git opensuse
    cd opensuse
    git clone git@github.com:os-autoinst/os-autoinst-needles-opensuse.git needles
  6. create a test dir to run os-autoinst in

    mkdir /tmp/os-autoinst-run
    cd /tmp/os-autoinst-run
  7. create a minimal "vars.json" config file

    vars.json
    {
       "ARCH" : "x86_64",
       "BACKEND" : "qemu",
       "CASEDIR" : "/path/to/os-autoinst-distri-opensuse",
       "DESKTOP" : "gnome",
       "DISTRI" : "opensuse",
       "ISO" : "/path/to/openSUSE-Tumbleweed-DVD-x86_64-Snapshot20160715-Media.iso",
       "PRODUCTDIR" : "/path/to/os-autoinst-distri-opensuse/products/opensuse",
       "VNC" : 90,
    }

    You will need to correct the file paths to point to real locations. Some of the variables you can use are listed here. Test case specific variables are listed in the distri directories e.g. os-autoinst-distri-opensuse/variables.

  8. give it a shot

    PATH_TO/os-autoinst/isotovideo
  9. hack away :)

use of git repo with with openQA

to use os-autoinst with openQA it needs to be "installed". Placing a symlink to /usr/lib/os-autoinst that points to the git checkout should work. To make tests and needles writable don’t touch distri/ and use tools/fetchneedles instead to set it up.

openSUSE setup

# openSUSE Tumbleweed
zypper ar -p 95 -f 'http://download.opensuse.org/repositories/devel:openQA/openSUSE_Tumbleweed' devel_openQA

# openSUSE Leap
zypper ar -p 95 -f 'http://download.opensuse.org/repositories/devel:openQA/openSUSE_Leap_$releasever' devel_openQA
zypper ar -p 90 -f 'http://download.opensuse.org/repositories/devel:openQA:Leap:$releasever/openSUSE_Leap_$releasever' devel_openQA_Leap

zypper in os-autoinst

usermod -G kvm -a $USERNAME || usermod -A kvm $USERNAME

more Linux setup

modprobe kvm-intel || modprobe kvm-amd
chgrp kvm /dev/kvm ; chmod g+rw /dev/kvm # maybe redundant
# optionally use a new user; just to keep things separate
useradd -m USERNAME -G kvm
passwd USERNAME # and/or add ~USERNAME/.ssh/authorized_keys

Development on Debian/Ubuntu

apt install autoconf automake g++ git libfftw3-dev libopencv-dev libsndfile-dev \
  libtheora-dev libtool make perltidy pkg-config spell