Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Building The Test Suite

floeschau edited this page Sep 2, 2022 · 3 revisions

This page shows the steps that are necessary to build the testsuite application so that they can be used as command-line tools.

Prerequisits

In order to build and run the cdab-client (for test scenarios TS01 to TS07), you need Mono and msbuild.

In order to run cdab-remote-client (for test scenarios TS11 to TS15), you need Python 3.

For cdab-client

Follow the instructions at this page to install mono. Make sure you install the mono-devel and msbuild packages.

For example, in the case of Ubuntu 20.04 LTS, the following sequence of commands will install all the necessary software:

sudo apt update
sudo apt upgrade -y
sudo apt install -y gnupg ca-certificates
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install -y mono-devel msbuild

For cdab-remote-client

Make sure python3 and the corresponding python3-pip package are installed.

You need additional Python packages (some might already be installed depending on your OS). The following command installs them:

pip3 install requests pyyaml lxml netifaces python-openstackclient==5.1.0 google-api-python-client boto3 python-cinderclient==2.2.0

Build the cdab-client

To build the execute the command below from the repository root directory (cdab-testsuite). This downloads all the necessary dependencies, including several support libraries maintained by Terradue, and produces the main executable, which is src/cdab-client/bin/Debug/net472/cdab-testtools.exe. This step may take a minute or so. The command is:

msbuild /property:GenerateFullPaths=true /t:build /restore:True src/cdab-client/

In order to be able easily run the tool, you could create an alias:

alias cdab-client="mono $PWD/src/cdab-client/bin/Debug/net472/cdab-testtools.exe"

Build the cdab-remote-client

No build procedure is necessary for the cdab-remote-client, which is a collection of Python scripts.

The main script is src/cdab-remote-client/libexec/cdab-remote-client.py3.

However, to have a shorthand for executing the tool, you could create an alias for the tool by running the following command from the repository root directory(cdab-testsuite):

alias cdab-remote-client="python3 $PWD/src/cdab-remote-client/libexec/cdab-remote-client.py3"