summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-12-29 20:39:58 +0100
committerLudovic Courtès <ludo@gnu.org>2014-12-29 21:17:36 +0100
commit907c98acbbf533715983c61a1e53cb29a52c4bef (patch)
treee228c54d454dd22085b0b2f3393462c326c46bcf /guix
parent8f501ac849fe012e7aefb001cbd7b17801df36d7 (diff)
lint: Add tests for the 'home-page' checker.
Suggested by Cyril Roelandt <tipecaml@gmail.com>. * tests/lint.scm (%http-server-port, %http-server-socket, %local-url, stub-http-server): New variables. (http-write, call-with-http-server): New procedures. (with-http-server): New macro. ("home-page: wrong home-page", "home-page: invalid URI", "home-page: host not found", "home-page: Connection refused", "home-page: 200", "home-page: 404"): New tests. * guix/scripts/lint.scm (check-home-page): Export.
Diffstat (limited to 'guix')
-rw-r--r--guix/scripts/lint.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm
index 9a0d997320..15ae213339 100644
--- a/guix/scripts/lint.scm
+++ b/guix/scripts/lint.scm
@@ -42,7 +42,8 @@
check-description-style
check-inputs-should-be-native
check-patches
- check-synopsis-style))
+ check-synopsis-style
+ check-home-page))
;;;