[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
22/28: gnu: java-stringtemplate-3: Enable tests.
From: |
Ricardo Wurmus |
Subject: |
22/28: gnu: java-stringtemplate-3: Enable tests. |
Date: |
Tue, 16 May 2017 09:24:36 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 2fcda6d291c3c7a1bbbc1960accc58a619b2c043
Author: Ricardo Wurmus <address@hidden>
Date: Tue May 16 12:48:47 2017 +0200
gnu: java-stringtemplate-3: Enable tests.
* gnu/packages/java.scm (java-stringtemplate-3)[arguments]: Enable tests;
add
build phase to fix tests.
---
gnu/packages/java.scm | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index cf84304..8fe005b 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -3164,9 +3164,15 @@ tree walking, and translation.")
(build-system ant-build-system)
(arguments
`(#:jar-name (string-append ,name "-" ,version ".jar")
- #:tests? #f
+ #:test-dir "test"
#:phases
(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ (substitute* "build.xml"
+ (("\\$\\{test.home\\}/java")
+ "${test.home}/org"))
+ #t))
(add-before 'build 'generate-grammar
(lambda _
(let ((dir "src/org/antlr/stringtemplate/language/"))
@@ -3177,7 +3183,8 @@ tree walking, and translation.")
'("template.g" "angle.bracket.template.g" "action.g"
"eval.g" "group.g" "interface.g"))))))))
(native-inputs
- `(("antlr" ,antlr2)))
+ `(("antlr" ,antlr2)
+ ("java-junit" ,java-junit)))
(home-page "http://www.stringtemplate.org")
(synopsis "Template engine to generate formatted text output")
(description "StringTemplate is a java template engine (with ports for C#,
- 14/28: gnu: Add cl-unicode., (continued)
- 14/28: gnu: Add cl-unicode., Ricardo Wurmus, 2017/05/16
- 06/28: build-system/asdf: Use asdf to determine dependencies., Ricardo Wurmus, 2017/05/16
- 05/28: gnu: cl-stumpwm: Build the library in "lib" and the program in "bin"., Ricardo Wurmus, 2017/05/16
- 11/28: build-system/asdf: Pass the system name as an argument to the builder., Ricardo Wurmus, 2017/05/16
- 23/28: gnu: java-stringtemplate-3: Use return value in build phase., Ricardo Wurmus, 2017/05/16
- 12/28: build-system/asdf: Always pre-load the system's definition file., Ricardo Wurmus, 2017/05/16
- 09/28: build-system/asdf: Make #:lisp a package argument., Ricardo Wurmus, 2017/05/16
- 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 <=
- 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, 2017/05/16
- 07/28: build-system/asdf: Don't rename inputs., Ricardo Wurmus, 2017/05/16