From 2fb1de8f027f9f87debab8f3794355aa684f777c Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Sun, 3 Feb 2019 11:56:10 +0200 Subject: [PATCH] Test installation Ensure that dunst is installed correctly to avoid bugs like #600. --- .circleci/config.yml | 1 + .travis.yml | 1 + test/test-install.sh | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100755 test/test-install.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 9609b9e..42eb03e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,6 +24,7 @@ jobs: - checkout - run: make CC=clang -j all dunstify test/test - run: make CC=clang -j test-valgrind + - run: ./test/test-install.sh - run: make clean - run: make CC=gcc -j all dunstify test/test - run: make CC=gcc -j test-valgrind diff --git a/.travis.yml b/.travis.yml index 6a2d89d..11c24db 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,6 +26,7 @@ before_install: script: - CFLAGS="-Werror" make all dunstify test-valgrind doc-doxygen + - ./test/test-install.sh - CFLAGS="-Werror" make clean - CFLAGS="-Werror" make test-coverage diff --git a/test/test-install.sh b/test/test-install.sh new file mode 100755 index 0000000..62aa0b1 --- /dev/null +++ b/test/test-install.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +set -euo pipefail + +BASE="$(dirname "$(dirname "$(readlink -f "$0")")")" +PREFIX="${BASE}/install" + +make -C "${BASE}" SYSTEMD=1 SERVICEDIR_SYSTEMD="${PREFIX}/systemd" SERVICEDIR_DBUS="${PREFIX}/dbus" PREFIX="${PREFIX}" install + +diff -u <(find "${PREFIX}" -type f -printf "%P\n" | sort) - <