[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/10: tests: hackage: Test multiline cabal description.
From: |
guix-commits |
Subject: |
08/10: tests: hackage: Test multiline cabal description. |
Date: |
Sun, 2 Jun 2019 16:21:27 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 64d31813577b7471f819652e3ec81abb285bb77c
Author: Robert Vollmert <address@hidden>
Date: Sun Jun 2 00:27:49 2019 +0200
tests: hackage: Test multiline cabal description.
* tests/hackage.scm (test-cabal-multiline-desc): New variable.
("hackage->guix-package test multiline desc"): New test.
Signed-off-by: Ludovic Courtès <address@hidden>
---
tests/hackage.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/tests/hackage.scm b/tests/hackage.scm
index 269c1e1..2f45194 100644
--- a/tests/hackage.scm
+++ b/tests/hackage.scm
@@ -236,6 +236,25 @@ library
(test-assert "hackage->guix-package test 6"
(eval-test-with-cabal test-cabal-6 match-ghc-foo-6))
+;; Check multi-line layouted description
+(define test-cabal-multiline-desc
+ "name: foo
+version: 1.0.0
+homepage: http://test.org
+synopsis: synopsis
+description: first line
+ second line
+license: BSD3
+executable cabal
+ build-depends:
+ HTTP >= 4000.2.5 && < 4000.3,
+ mtl >= 2.0 && < 3
+")
+
+(test-assert "hackage->guix-package test multiline desc"
+ (eval-test-with-cabal test-cabal-multiline-desc match-ghc-foo))
+
+
(test-assert "read-cabal test 1"
(match (call-with-input-string test-read-cabal-1 read-cabal)
((("name" ("test-me"))
- branch master updated (bdf2dd7 -> 4a54ed7), guix-commits, 2019/06/02
- 04/10: gnu: Add guile-srfi-159., guix-commits, 2019/06/02
- 08/10: tests: hackage: Test multiline cabal description.,
guix-commits <=
- 01/10: build-system/guile: Improve reporting of 'guild compile' failures., guix-commits, 2019/06/02
- 02/10: build-system/guile: Add #:not-compiled-file-regexp., guix-commits, 2019/06/02
- 06/10: substitute: Select the best compression methods., guix-commits, 2019/06/02
- 09/10: import: hackage: Parse braced properties., guix-commits, 2019/06/02
- 05/10: publish: '--compression' can be repeated., guix-commits, 2019/06/02
- 07/10: tests: Fix hackage tests., guix-commits, 2019/06/02
- 03/10: build-system/guile: Display progress report as expected by (guix status)., guix-commits, 2019/06/02
- 10/10: gnu: emacs-google-translate: Update to 0.11.17., guix-commits, 2019/06/02