From f0321d2d5a6575cf726d23f66a1221a30304c3c9 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: May 28 2019 17:55:09 +0000 Subject: ci: execute integration tests Run the integration tests for the 'boltd' installed on the system. A custom script is used so that each tests gets run individually. --- diff --git a/tests/run-it.sh b/tests/run-it.sh new file mode 100755 index 0000000..bc5bb6f --- /dev/null +++ b/tests/run-it.sh @@ -0,0 +1,20 @@ +#!/usr/bin/bash +set -u + +IT="$1" + +# discover all the tests +TESTS=() +while IFS= read -r line; do + TESTS+=( "${line% *}" ) +done < <( "$1" list-tests ) + +# execute all the tests, one by one +RESULT=0 +for test in ${TESTS[@]}; do + echo "$test" + umockdev-wrapper "$IT" "$test" + ((RESULT += $?)) +done + +exit $RESULT diff --git a/tests/tests.yml b/tests/tests.yml index b21e12a..fefd28f 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -1,12 +1,22 @@ --- - hosts: localhost roles: + - role: standard-test-source + tags: + - always - role: standard-test-basic tags: - classic required_packages: - bolt + - pygobject3-devel + - python3-dbus + - python3-dbusmock + - umockdev-devel tests: - smoke: dir: smoke run: boltctl --version + - integration: + dir: . + run: ./run-it.sh source/tests/test-integration