From d23077dc5ca1517bd6d1600664fe2303b86eb16c Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 4 Dec 2012 23:16:11 +0100 Subject: daemon: Add test. * daemon.am (test_root, AM_TESTS_ENVIRONMENT): New variables. (clean-local): New target. * tests/guix-daemon.sh: New file. --- daemon.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'daemon.am') 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)" -- cgit v1.2.3