build: Run all the tests against the just-built daemon.
[jackhill/guix/guix.git] / daemon.am
index f5d58ea..8c2c22d 100644 (file)
--- a/daemon.am
+++ b/daemon.am
@@ -155,15 +155,12 @@ EXTRA_DIST +=                                     \
   nix/AUTHORS                                  \
   nix/COPYING
 
-# Temporary directory used to store the daemon's data.
-test_root = $(abs_top_builddir)/test-tmp
-
 AM_TESTS_ENVIRONMENT +=                                \
-  top_builddir="$(abs_top_builddir)"           \
-  TEST_ROOT="$(test_root)"
+  top_builddir="$(abs_top_builddir)"
 
 TESTS +=                                       \
   tests/guix-daemon.sh
 
 clean-local:
-       -rm -rf "$(test_root)"
+       -find "$(GUIX_TEST_ROOT)" | xargs chmod +w
+       -rm -rf "$(GUIX_TEST_ROOT)"