aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-19 10:55:07 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-19 10:56:02 +0200
commite99bbfd4b503a6af1a105b5a65b04b6acf45077b (patch)
tree25e2d4aaca657e19eccadadf2906cfb11af9f9a1 /debian/rules
parenta436b0f77972d527071505cc5a32a97333d18870 (diff)
downloadremote-logon-service-e99bbfd4b503a6af1a105b5a65b04b6acf45077b.tar.gz
remote-logon-service-e99bbfd4b503a6af1a105b5a65b04b6acf45077b.tar.bz2
remote-logon-service-e99bbfd4b503a6af1a105b5a65b04b6acf45077b.zip
debian/rules: Fake a user's HOME directory while running tests.
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index afcf78b..3660b3b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+BUILD_HOME=debian/build-home
+
%:
dh $@ --with autoreconf
@@ -7,6 +9,11 @@ override_dh_autoreconf:
touch ChangeLog
dh_autoreconf
+override_dh_auto_test:
+ mkdir -p $(BUILD_HOME)
+ HOME=$(BUILD_HOME) dh_auto_test
+ rm -Rfv $(BUILD_HOME)
+
override_dh_auto_clean:
if [ -s ChangeLog ]; then rm -f ChangeLog; fi
dh_auto_clean