summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCyril Roelandt <tipecaml@gmail.com>2014-09-27 23:24:12 +0200
committerCyril Roelandt <tipecaml@gmail.com>2014-10-08 03:08:20 +0200
commit3c762a13bf0a8e15f2cf67d6a9eb27cf6d55267d (patch)
tree8737504ea40891a6074f957320d678de3bd08770 /tests
parenta00ffdaa17c7ac96bb86734bac08a90c7785c98a (diff)
guix lint: make sure synopses do not start with the package name.
* guix/scripts/lint.scm (check-start-with-package-name): New method. * tests/lint.scm ("synopsis: start with package name"): New test.
Diffstat (limited to 'tests')
-rw-r--r--tests/lint.scm10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lint.scm b/tests/lint.scm
index c439faa30ee..62a9df90d89 100644
--- a/tests/lint.scm
+++ b/tests/lint.scm
@@ -124,6 +124,16 @@
124 (check-synopsis-style pkg)))) 124 (check-synopsis-style pkg))))
125 "synopsis should be less than 80 characters long"))) 125 "synopsis should be less than 80 characters long")))
126 126
127(test-assert "synopsis: start with package name"
128 (->bool
129 (string-contains (call-with-warnings
130 (lambda ()
131 (let ((pkg (dummy-package "x"
132 (name "foo")
133 (synopsis "foo, a nice package"))))
134 (check-synopsis-style pkg))))
135 "synopsis should not start with the package name")))
136
127(test-assert "inputs: pkg-config is probably a native input" 137(test-assert "inputs: pkg-config is probably a native input"
128 (->bool 138 (->bool
129 (string-contains 139 (string-contains