From 0c5606ae99a013af3ba152c568d1298ed0955f9c Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Mon, 1 Jun 2020 17:49:08 +0200 Subject: [PATCH] Add CI tests using the Standard Test Interface Signed-off-by: Jan Friesse --- tests/.gitignore | 3 +++ tests/tests.yml | 9 +++++++++ tests/upstream/runtest.sh | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/.gitignore create mode 100644 tests/tests.yml create mode 100644 tests/upstream/runtest.sh diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..e6c79fd --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,3 @@ +# Ignore tests runs/artefacts. +artifacts/** +**/*.retry diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..8ee75ea --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,9 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + tests: + - upstream + required_packages: + - booth-test diff --git a/tests/upstream/runtest.sh b/tests/upstream/runtest.sh new file mode 100644 index 0000000..0321369 --- /dev/null +++ b/tests/upstream/runtest.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +set -xe +set -o pipefail + +/usr/share/booth/tests/test/runtests.py --allow-root-user