diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-03-11 22:15:47 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-03-18 16:03:33 +0100 |
commit | 25261cbf96a3bf58abc6e836d71bdabe9154a83c (patch) | |
tree | 9ffb3c4af07b848470589071e5cf9f4d9056076e /tests/guix-home.sh | |
parent | e607c377bb677ee4de0b0527adcef9d333767c0f (diff) | |
download | guix-25261cbf96a3bf58abc6e836d71bdabe9154a83c.tar.gz |
guix home: Implement the 'extension-graph' and 'shepherd-graph' actions.
Until now these two actions were silently ignored. * guix/scripts/home.scm (show-help, %options): Add "--graph-backend". (%default-options): Add 'graph-backend' key. (export-extension-graph, export-shepherd-graph): New procedures. (perform-action): Add #:graph-backend parameter. Add cases for the 'extension-graph' and 'shepherd-graph' actions. (process-action): Pass #:graph-backend to 'perform-action'. * guix/scripts/system.scm (service-node-type) (shepherd-service-node-type): Export * tests/guix-home.sh: Add tests. * doc/guix.texi (Invoking guix home): Document it.
Diffstat (limited to 'tests/guix-home.sh')
-rw-r--r-- | tests/guix-home.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/guix-home.sh b/tests/guix-home.sh index f054d15172..48dbcbd28f 100644 --- a/tests/guix-home.sh +++ b/tests/guix-home.sh @@ -93,6 +93,14 @@ trap 'chmod -Rf +w "$test_directory"; rm -rf "$test_directory"' EXIT "# the content of bashrc-test-config.sh")))))))) EOF + # Check whether the graph commands work as expected. + guix home extension-graph "home.scm" | grep 'label = "home-activation"' + guix home extension-graph "home.scm" | grep 'label = "home-symlink-manager"' + guix home extension-graph "home.scm" | grep 'label = "home"' + + # There are no Shepherd services so the one below must fail. + ! guix home shepherd-graph "home.scm" + guix home reconfigure "${test_directory}/home.scm" test -d "${HOME}/.guix-home" test -h "${HOME}/.bash_profile" |