aboutsummaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-22 09:14:10 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-22 09:14:10 +0200
commit4de805fe9963c97dd6a58ee2edfb9d33601cf366 (patch)
treed43723b5ca5aa5075d8ae28f3e4d5ac47dd4591d /debian
parent800f06cffe2eab4bfd561397bc660d78927b5f2f (diff)
downloadlibayatana-appindicator-4de805fe9963c97dd6a58ee2edfb9d33601cf366.tar.gz
libayatana-appindicator-4de805fe9963c97dd6a58ee2edfb9d33601cf366.tar.bz2
libayatana-appindicator-4de805fe9963c97dd6a58ee2edfb9d33601cf366.zip
debian/rules: Also explicitly set XDG_CACHE_HOME for unit tests.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules8
1 files changed, 6 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index d768c4e..3bb60eb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,17 +65,21 @@ override_dh_install:
# dh_install -plibayatana-appindicator0.1-cil-dev --fail-missing --sourcedir=debian/tmp/gtk2; \
override_dh_auto_test:
- mkdir -p $(CURDIR)/debian/tmphome-gtk2
+ mkdir -p $(CURDIR)/debian/tmphome-gtk2/.local/share
+ mkdir -p $(CURDIR)/debian/tmphome-gtk2/.cache
export HOME=$(CURDIR)/debian/tmphome-gtk2 \
&& export XDG_DATA_HOME=$(CURDIR)/debian/tmphome-gtk2/.local/share \
+ && export XDG_CACHE_HOME=$(CURDIR)/debian/tmphome-gtk2/.cache \
&& dh_auto_test --no-parallel --builddirectory=build/gtk2
# View test's log file for better debugging of problems when built in clean chroots.
if [ -e build/gtk2/tests/test-suite.log ]; then cat build/gtk2/tests/test-suite.log; fi
rm -Rf $(CURDIR)/debian/tmphome-gtk2
- mkdir -p $(CURDIR)/debian/tmphome-gtk3
+ mkdir -p $(CURDIR)/debian/tmphome-gtk3/.local/share
+ mkdir -p $(CURDIR)/debian/tmphome-gtk3/.cache
export HOME=$(CURDIR)/debian/tmphome-gtk3 \
&& export XDG_DATA_HOME=$(CURDIR)/debian/tmphome-gtk3/.local/share \
+ && export XDG_CACHE_HOME=$(CURDIR)/debian/tmphome-gtk3/.cache \
&& dh_auto_test --no-parallel --builddirectory=build/gtk3
# View test's log file for better debugging of problems when built in clean chroots.
if [ -e build/gtk3/tests/test-suite.log ]; then cat build/gtk3/tests/test-suite.log; fi