[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
28/28: gnu: java-stringtemplate: Get closer to fixing tests.
From: |
Ricardo Wurmus |
Subject: |
28/28: gnu: java-stringtemplate: Get closer to fixing tests. |
Date: |
Tue, 16 May 2017 09:24:37 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 6db77c7ca1b4f2b1896136684618e30b343bfc1f
Author: Ricardo Wurmus <address@hidden>
Date: Tue May 16 14:01:58 2017 +0200
gnu: java-stringtemplate: Get closer to fixing tests.
* gnu/packages/java.scm (java-stringtemplate)[arguments]: Set test-dir and
override default test target. Keep tests disabled because they fail for
unknown reasons.
[inputs]: Add java-junit.
---
gnu/packages/java.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index bd27d41..188ca7e 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3224,13 +3224,20 @@ StringTemplate also powers ANTLR.")
"1pri8hqa95rfdkjy55icl5q1m09zwp5k67ib14abas39s4v3w087"))))
(build-system ant-build-system)
(arguments
- `(#:tests? #f
- #:jar-name (string-append ,name "-" ,version ".jar")
+ `(#:jar-name (string-append ,name "-" ,version ".jar")
+ #:tests? #f ; FIXME: tests fail for unknown reasons
+ #:test-dir "test"
#:modules ((guix build ant-build-system)
(guix build utils)
(srfi srfi-1))
#:phases
(modify-phases %standard-phases
+ (add-before 'check 'fix-test-target
+ (lambda _
+ (substitute* "build.xml"
+ (("\\$\\{test.home\\}/java") "${test.home}/")
+ (("\\*Test.java") "Test*.java"))
+ #t))
(add-before 'build 'generate-grammar
(lambda _
(with-directory-excursion "src/org/stringtemplate/v4/compiler/"
@@ -3241,7 +3248,8 @@ StringTemplate also powers ANTLR.")
(inputs
`(("antlr3" ,antlr3-bootstrap)
("antlr2" ,antlr2)
- ("java-stringtemplate" ,java-stringtemplate-3)))))
+ ("java-stringtemplate" ,java-stringtemplate-3)
+ ("java-junit" ,java-junit)))))
(define java-stringtemplate-4.0.6
(package (inherit java-stringtemplate)
- 26/28: gnu: Rename stringtemplate4 to java-stringtemplate., (continued)
- 26/28: gnu: Rename stringtemplate4 to java-stringtemplate., Ricardo Wurmus, 2017/05/16
- 13/28: build-system/asdf: Handle unusually-named systems., Ricardo Wurmus, 2017/05/16
- 19/28: doc: Update the documentation for the asdf build systems., Ricardo Wurmus, 2017/05/16
- 22/28: gnu: java-stringtemplate-3: Enable tests., Ricardo Wurmus, 2017/05/16
- 15/28: build-system/asdf: Simplify the use of lisp-eval-program., Ricardo Wurmus, 2017/05/16
- 27/28: gnu: Rename stringtemplate4-4.0.6 to java-stringtemplate-4.0.6., Ricardo Wurmus, 2017/05/16
- 20/28: gnu: Rename stringtemplate3 to java-stringtemplate-3., Ricardo Wurmus, 2017/05/16
- 16/28: build-system/asdf: Retain references to source files for binary outputs., Ricardo Wurmus, 2017/05/16
- 10/28: build-system/asdf: Parameterize the lisp type and implementation globally., Ricardo Wurmus, 2017/05/16
- 24/28: gnu: stringtemplate4: Inherit from java-stringtemplate-3., Ricardo Wurmus, 2017/05/16
- 28/28: gnu: java-stringtemplate: Get closer to fixing tests.,
Ricardo Wurmus <=
- 07/28: build-system/asdf: Don't rename inputs., Ricardo Wurmus, 2017/05/16