daemon: Add `list-runtime-roots' script.

* nix/scripts/list-runtime-roots.in: New file.
* config-daemon.ac: Add `AC_CONFIG_FILES' invocation for it.
* daemon.am (nodist_pkglibexec_SCRIPTS): New variable.
  (AM_TESTS_ENVIRONMENT): Define `top_builddir'.
* tests/guix-daemon.sh: Export `NIX_ROOT_FINDER'.
* nix/sync-with-upstream: Substitute the path to the root finder in
  libstore/gc.cc.
This commit is contained in:
Ludovic Courtès 2012-12-05 16:29:28 +01:00
parent 8b15ac6700
commit f5c82e15e0
6 changed files with 131 additions and 1 deletions

View file

@ -146,6 +146,9 @@ nix/libstore/schema.sql.hh: nix/libstore/schema.sql
(lambda (in) \
(write (get-string-all in) out)))))"
nodist_pkglibexec_SCRIPTS = \
nix/scripts/list-runtime-roots
EXTRA_DIST += \
nix/sync-with-upstream \
nix/libstore/schema.sql \
@ -156,6 +159,7 @@ EXTRA_DIST += \
test_root = $(abs_top_builddir)/test-tmp
AM_TESTS_ENVIRONMENT += \
top_builddir="$(abs_top_builddir)" \
TEST_ROOT="$(test_root)"
TESTS += \