1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-23 01:25:57 +02:00

lint: Add 'license' checker.

* guix/scripts/lint.scm (check-license): New procedure.
  (%checkers): Add 'license' checker.
* tests/lint.scm ("license: invalid license"): New test.
This commit is contained in:
Ludovic Courtès
2015-09-06 10:54:51 +02:00
parent 718a2bde42
commit 52b9efe337
2 changed files with 25 additions and 0 deletions
+6
View File
@@ -329,6 +329,12 @@ requests."
(check-derivation pkg)))
"failed to create derivation")))
(test-assert "license: invalid license"
(string-contains
(with-warnings
(check-license (dummy-package "x" (license #f))))
"invalid license"))
(test-assert "home-page: wrong home-page"
(->bool
(string-contains