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) - <