aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorzimoun <zimon.toutoune@gmail.com>2019-12-04 19:06:31 +0100
committerLudovic Courtès <ludo@gnu.org>2019-12-08 23:14:03 +0100
commit7282f9496793227d7ac6f902976aecb663068ec1 (patch)
tree42bdc9d0c1fb22255d4d262b12de92ec7ec01657 /tests
parentd9b4022c6fd6844e42aaa503d3118bf3e3a0a441 (diff)
downloadguix-7282f9496793227d7ac6f902976aecb663068ec1.tar
guix-7282f9496793227d7ac6f902976aecb663068ec1.tar.gz
lint: Add '--load-path' option.
* guix/scripts/lint.scm (%options): Add '--load-path' option. * doc/guix.texi: Document it. * tests/guix-lint.sh: Test it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/guix-lint.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/guix-lint.sh b/tests/guix-lint.sh
index 7ddc7c265b..f0df1fda3a 100644
--- a/tests/guix-lint.sh
+++ b/tests/guix-lint.sh
@@ -76,3 +76,14 @@ then true; else false; fi
# Make sure specifying multiple packages works.
guix lint -c inputs-should-be-native dummy dummy@42 dummy
+
+
+# Use --load-path instead.
+unset GUIX_PACKAGE_PATH
+
+out=`guix lint -L $module_dir -c synopsis,description dummy 2>&1`
+if [ `grep_warning "$out"` -ne 3 ]
+then false; else true; fi
+
+# Make sure specifying multiple packages works.
+guix lint -L $module_dir -c inputs-should-be-native dummy dummy@42 dummy