diff options
author | Ludovic Courtès <ludo@gnu.org> | 2019-11-07 18:15:55 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-11-07 18:39:55 +0100 |
commit | 3e962e59d849e4300e447d94487684102d9d412e (patch) | |
tree | 3d69d4365af0c02f5afa121355872da2d97d9295 /tests/guix-graph.sh | |
parent | 7de9471707116b51ef88d042887dd93e8260513d (diff) | |
download | patches-3e962e59d849e4300e447d94487684102d9d412e.tar patches-3e962e59d849e4300e447d94487684102d9d412e.tar.gz |
graph: Support package transformation options.
* guix/scripts/graph.scm (%options): Append %TRANSFORMATION-OPTIONS.
(show-help): Call 'show-transformation-options-help'.
(guix-graph): Call 'options->transformation' and use it.
* tests/guix-graph.sh: Add test.
* doc/guix.texi (Invoking guix graph): Document it.
Diffstat (limited to 'tests/guix-graph.sh')
-rw-r--r-- | tests/guix-graph.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/guix-graph.sh b/tests/guix-graph.sh index 1ec99706fd..2d4b3fac3f 100644 --- a/tests/guix-graph.sh +++ b/tests/guix-graph.sh @@ -1,5 +1,5 @@ # GNU Guix --- Functional package management for GNU -# Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org> +# Copyright © 2015, 2016, 2019 Ludovic Courtès <ludo@gnu.org> # # This file is part of GNU Guix. # @@ -53,3 +53,9 @@ cmp "$tmpfile1" "$tmpfile2" guix graph -t derivation coreutils > "$tmpfile1" guix graph -t derivation `guix build -d coreutils` > "$tmpfile2" cmp "$tmpfile1" "$tmpfile2" + +# Try package transformation options. +guix graph git | grep 'label = "openssl' +guix graph git --with-input=openssl=libressl | grep 'label = "libressl' +if guix graph git --with-input=openssl=libressl | grep 'label = "openssl' +then false; else true; fi |