aboutsummaryrefslogtreecommitdiff
path: root/tests/run-eds-ics-test.sh
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2016-03-30 13:26:46 -0300
committerRobert Tari <robert@tari.in>2021-07-05 00:44:12 +0200
commit6105ec78d545d11184aae91700fe5aec8b8bde4b (patch)
tree4fcb0ba3d132b66de8f5f137e2f2f5e50aaeb327 /tests/run-eds-ics-test.sh
parentba0581ac2fd8df5a5023fdc126351dafbbba07ed (diff)
downloadayatana-indicator-datetime-6105ec78d545d11184aae91700fe5aec8b8bde4b.tar.gz
ayatana-indicator-datetime-6105ec78d545d11184aae91700fe5aec8b8bde4b.tar.bz2
ayatana-indicator-datetime-6105ec78d545d11184aae91700fe5aec8b8bde4b.zip
Created unit test.
Diffstat (limited to 'tests/run-eds-ics-test.sh')
-rwxr-xr-xtests/run-eds-ics-test.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run-eds-ics-test.sh b/tests/run-eds-ics-test.sh
index 13c1617..b38fe77 100755
--- a/tests/run-eds-ics-test.sh
+++ b/tests/run-eds-ics-test.sh
@@ -6,6 +6,7 @@ TEST_EXEC=$2 # full executable path of test app
TEST_NAME=$3 # test name
CONFIG_DIR=$4 # config files
ICS_FILE=$5 # ical file holding test data
+ACCOUNTS_DB=$6 # online account database
echo "this script: ${SELF}"
echo "test-runner: ${TEST_RUNNER}"
@@ -55,6 +56,13 @@ if [ -e ${ICS_FILE} ]; then
cp --verbose --archive ${ICS_FILE} ${XDG_DATA_HOME}/evolution/tasks/system/tasks.ics
fi
+# prepare online accounts database
+if [ -e ${ACCOUNTS_DB} ]; then
+ echo "copying ${ACCOUNTS_DB} into $HOME"
+ mkdir -p ${XDG_CONFIG_HOME}/libaccounts-glib/
+ cp --verbose --archive ${ACCOUNTS_DB} ${XDG_CONFIG_HOME}/libaccounts-glib/accounts.db
+fi
+
# run the test
${TEST_RUNNER} --keep-env --max-wait=90 --task ${TEST_EXEC} --task-name ${TEST_NAME} --wait-until-complete
rv=$?