aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2017-05-16 12:48:47 +0200
committerRicardo Wurmus <rekado@elephly.net>2017-05-16 15:18:16 +0200
commit2fcda6d291c3c7a1bbbc1960accc58a619b2c043 (patch)
tree61b43b67613715472769cdc0efa0bfe2e4659a78 /gnu
parent129d926d26b4f1a581351dce4cacadc4741539c6 (diff)
downloadguix-2fcda6d291c3c7a1bbbc1960accc58a619b2c043.tar
guix-2fcda6d291c3c7a1bbbc1960accc58a619b2c043.tar.gz
gnu: java-stringtemplate-3: Enable tests.
* gnu/packages/java.scm (java-stringtemplate-3)[arguments]: Enable tests; add build phase to fix tests.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/java.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index cf8430451c..8fe005b28d 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#,