summaryrefslogtreecommitdiff
path: root/daemon.am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-12-04 23:16:11 +0100
committerLudovic Courtès <ludo@gnu.org>2012-12-04 23:51:48 +0100
commitd23077dc5ca1517bd6d1600664fe2303b86eb16c (patch)
treead0875d0cc2d9bc415506ff77adec3d699cc5115 /daemon.am
parent2606bbcf917c0bc1b2ed10a104acfbbe151a941b (diff)
downloadpatches-d23077dc5ca1517bd6d1600664fe2303b86eb16c.tar
patches-d23077dc5ca1517bd6d1600664fe2303b86eb16c.tar.gz
daemon: Add test.
* daemon.am (test_root, AM_TESTS_ENVIRONMENT): New variables. (clean-local): New target. * tests/guix-daemon.sh: New file.
Diffstat (limited to 'daemon.am')
-rw-r--r--daemon.am12
1 files changed, 12 insertions, 0 deletions
diff --git a/daemon.am b/daemon.am
index 79e2715c74..48b0871a97 100644
--- a/daemon.am
+++ b/daemon.am
@@ -151,3 +151,15 @@ EXTRA_DIST += \
nix/libstore/schema.sql \
nix/AUTHORS \
nix/COPYING
+
+# Temporary directory used to store the daemon's data.
+test_root = $(abs_top_builddir)/test-tmp
+
+AM_TESTS_ENVIRONMENT += \
+ TEST_ROOT="$(test_root)"
+
+TESTS += \
+ tests/guix-daemon.sh
+
+clean-local:
+ -rm -rf "$(test_root)"