summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2020-03-10 20:26:17 +0100
committerMarius Bakke <mbakke@fastmail.com>2020-03-10 20:26:17 +0100
commit944e3502b133fc0e84e257c60ac36bdff9fcffd4 (patch)
tree90c2eaad373971ac47918bb9245cb23e70b1c4d9
parent79093034b9103393a7edc90c8dce45ab1acea3f3 (diff)
gnu: mercurial: Enable more tests.
* gnu/packages/version-control.scm (mercurial)[arguments]: Add phase 'patch-tests'. Do not remove patched tests in the 'check' phase.
-rw-r--r--gnu/packages/version-control.scm32
1 files changed, 22 insertions, 10 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 5ea3dc415c5..c289e43d94d 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1332,27 +1332,39 @@ control to Git repositories.")
1332 (arguments 1332 (arguments
1333 `(#:phases 1333 `(#:phases
1334 (modify-phases %standard-phases 1334 (modify-phases %standard-phases
1335 (add-after 'unpack 'patch-tests
1336 (lambda _
1337 (substitute* '("tests/test-extdiff.t"
1338 "tests/test-logtoprocess.t"
1339 "tests/test-patchbomb.t"
1340 "tests/test-run-tests.t"
1341 "tests/test-transplant.t")
1342 (("/bin/sh")
1343 (which "sh")))
1344 #t))
1335 (replace 'check 1345 (replace 'check
1336 (lambda* (#:key tests? #:allow-other-keys) 1346 (lambda* (#:key tests? #:allow-other-keys)
1337 (with-directory-excursion "tests" 1347 (with-directory-excursion "tests"
1338 ;; The following tests are known to fail. 1348 ;; The following tests are known to fail.
1339 (for-each (lambda (file) 1349 (for-each delete-file
1340 (delete-file file)) 1350 '(;; XXX: This test calls 'run-tests.py --with-hg=
1341 '("test-extdiff.t" 1351 ;; `which hg`' and fails because there is no hg on
1352 ;; PATH from before (that's why we are building it!)?
1342 "test-hghave.t" 1353 "test-hghave.t"
1354
1355 ;; FIXME: Why does this fail in the build container, but
1356 ;; not in 'guix environment -C' (even without /bin/sh)?
1357 "test-nointerrupt.t"
1358
1359 ;; TODO: the fqaddr() call fails in the build
1360 ;; container, causing these server tests to fail.
1343 "test-hgwebdir.t" 1361 "test-hgwebdir.t"
1344 "test-http-branchmap.t" 1362 "test-http-branchmap.t"
1345 "test-logtoprocess.t"
1346 "test-merge-combination.t"
1347 "test-nointerrupt.t"
1348 "test-patchbomb.t"
1349 "test-pull-bundle.t" 1363 "test-pull-bundle.t"
1350 "test-push-http.t" 1364 "test-push-http.t"
1351 "test-run-tests.t"
1352 "test-serve.t" 1365 "test-serve.t"
1353 "test-subrepo-deep-nested-change.t" 1366 "test-subrepo-deep-nested-change.t"
1354 "test-subrepo-recursion.t" 1367 "test-subrepo-recursion.t"))
1355 "test-transplant.t"))
1356 (when tests? 1368 (when tests?
1357 (invoke "./run-tests.py" 1369 (invoke "./run-tests.py"
1358 ;; ‘make check’ does not respect ‘-j’. 1370 ;; ‘make check’ does not respect ‘-j’.