[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: ghc-8.6: Mark failing stat tests as fragile.
From: |
guix-commits |
Subject: |
01/01: gnu: ghc-8.6: Mark failing stat tests as fragile. |
Date: |
Tue, 23 Jul 2019 09:37:54 -0400 (EDT) |
rob pushed a commit to branch wip-haskell-updates
in repository guix.
commit 1b68fa5235cdf8b93982e89fab68d494c32c63ea
Author: Robert Vollmert <address@hidden>
Date: Tue Jul 23 15:32:38 2019 +0200
gnu: ghc-8.6: Mark failing stat tests as fragile.
* gnu/packages/haskell.scm (ghc-8.6): Update phase 'skip-tests.
---
gnu/packages/haskell.scm | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index a57efdb..b2e8941 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -636,13 +636,24 @@ interactive environment for the functional language
Haskell.")
(assoc-ref inputs "ghc-testsuite")
"--strip-components=1")
#t))
- ;; These two tests refer to the root user, which doesn't exist.
(add-after 'unpack-testsuite 'skip-tests
(lambda _
- (substitute* "libraries/unix/tests/all.T"
- (("^test\\('T8108'") "# guix skipped: test('T8108'"))
- (substitute* "libraries/unix/tests/libposix/all.T"
- (("^test\\('posix010'") "# guix skipped: test('posix010'"))
+ (define (modify-test file-name test-name modifier)
+ (let ((pattern (string-append "^test\\('" test-name "',"))
+ (replace (string-append "test('" test-name "', " modifier
",")))
+ (substitute* file-name ((pattern) replace))))
+
+ ;; These two tests refer to the root user, which doesn't exist.
+ (modify-test "libraries/unix/tests/all.T" "T8108" "expect_fail")
+ (modify-test "libraries/unix/tests/libposix/all.T" "posix010"
"expect_fail")
+
+ ;; Several unexpected stat test failures, mark fragile
+ (modify-test "testsuite/tests/perf/compiler/all.T" "T5631"
"fragile(-1)")
+ (modify-test "testsuite/tests/perf/compiler/all.T" "parsing001"
"fragile(-1)")
+ (modify-test "testsuite/tests/perf/haddock/all.T" "haddock.base"
"fragile(-1)")
+ (modify-test "testsuite/tests/perf/haddock/all.T" "haddock.Cabal"
"fragile(-1)")
+ (modify-test "testsuite/tests/perf/should_run/all.T" "T9203"
"fragile(-1)")
+
#t))
;; This phase patches the 'ghc-pkg' command so that it sorts the list
;; of packages in the binary cache it generates.