diff options
| author | Timo Wilken | 2020-05-08 19:47:00 +0100 |
|---|---|---|
| committer | Timo Wilken | 2020-05-08 19:47:00 +0100 |
| commit | 278a637465af7ec1b4fdaf96032bf3c0d34146f7 (patch) | |
| tree | 7693149d31136f58550c5ca3508f11b37ae7ff8c | |
| parent | b43fa12a36b330ded14fd0197926fb3c352579ea (diff) | |
| -rw-r--r-- | .gitignore | 3 | ||||
| -rwxr-xr-x | test/test.sh | 21 |
2 files changed, 21 insertions, 3 deletions
@@ -9,7 +9,8 @@ prefix.sh /src/org.kde.Akonadi.*.Settings.xml /src/settingsadaptor.moc_parameters -test/testenv.sh +/test/testenv.sh +/test/xdgdata/decsync # CMake cache files etc. # from https://github.com/github/gitignore/blob/master/CMake.gitignore diff --git a/test/test.sh b/test/test.sh index eebd01d..5c3bf14 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1,11 +1,28 @@ -#!/bin/sh +#!/usr/bin/bash +msg() { + printf '\n\n' >&2 + printf ' ==> %s\n' "$@" >&2 + printf '\n\n' >&2 +} + +msg 'REPLACING TEST DECSYNC DATA' rm -rf xdgdata/decsync && cp -a ~/sync/decsync xdgdata/decsync || exit 1 +msg 'RUNNING AKONADITEST' +rm -f testenv.sh akonaditest -c config.xml --testenv testenv.sh & -sleep 1s + +msg 'WAITING...' +until [ -f testenv.sh ]; do sleep 1s; done + +msg 'SOURCING TESTENV.SH' . ./testenv.sh || exit 2 + +msg 'RUNNING AKONADICONSOLE' akonadiconsole + +msg 'SHUTTING DOWN' shutdown-testenvironment wait |
