diff options
author | Leo Famulari <leo@famulari.name> | 2016-11-23 00:11:30 -0500 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-11-23 00:11:30 -0500 |
commit | de76f0a45bad2654cc2561b463e3d6ec4d96c398 (patch) | |
tree | e1dcd0a33de2d8dffaa9d4c5068fc1fd0f149734 /tests/lint.scm | |
parent | c70047f12d7e9d5138a1a217d0995882a8c5f459 (diff) | |
parent | 08b3e4a97066c9baaf39e3df7c2dd9c39e693ead (diff) | |
download | patches-de76f0a45bad2654cc2561b463e3d6ec4d96c398.tar patches-de76f0a45bad2654cc2561b463e3d6ec4d96c398.tar.gz |
Merge branch 'master' into core-updates
Diffstat (limited to 'tests/lint.scm')
-rw-r--r-- | tests/lint.scm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lint.scm b/tests/lint.scm index cf1b95ee69..0c534562a4 100644 --- a/tests/lint.scm +++ b/tests/lint.scm @@ -508,6 +508,25 @@ (check-source pkg)))) "not reachable: 404"))) +(test-assert "mirror-url" + (string-null? + (with-warnings + (let ((source (origin + (method url-fetch) + (uri "http://example.org/foo/bar.tar.gz") + (sha256 %null-sha256)))) + (check-mirror-url (dummy-package "x" (source source))))))) + +(test-assert "mirror-url: one suggestion" + (string-contains + (with-warnings + (let ((source (origin + (method url-fetch) + (uri "http://ftp.gnu.org/pub/gnu/foo/foo.tar.gz") + (sha256 %null-sha256)))) + (check-mirror-url (dummy-package "x" (source source))))) + "mirror://gnu/foo/foo.tar.gz")) + (test-assert "cve" (mock ((guix scripts lint) package-vulnerabilities (const '())) (string-null? |