[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/24: gnu: Add java-ops4j-pax-exam-core-spi.
From: |
julien lepiller |
Subject: |
13/24: gnu: Add java-ops4j-pax-exam-core-spi. |
Date: |
Tue, 10 Oct 2017 16:08:16 -0400 (EDT) |
roptat pushed a commit to branch master
in repository guix.
commit 7a7c2b7556114e08d70213c67d0368d66f2fddca
Author: Julien Lepiller <address@hidden>
Date: Wed Oct 4 20:08:52 2017 +0200
gnu: Add java-ops4j-pax-exam-core-spi.
* gnu/packages/java.scm (java-ops4j-pax-exam-core-spi): New variable.
---
gnu/packages/java.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 2783565..07648a9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -5587,3 +5587,59 @@ to create those artifacts.")
the user take control of the OSGi framework, the test framework (e.g. JUnit)
and
the system under test at the same time.")
(license license:asl2.0)))
+
+(define-public java-ops4j-pax-exam-core-spi
+ (package
+ (inherit java-ops4j-pax-exam-core)
+ (name "java-ops4j-pax-exam-core-spi")
+ (arguments
+ `(#:jar-name "java-ops4j-pax-exam-spi.jar"
+ #:source-dir "src/main/java"
+ #:test-exclude
+ (list
+ ;; Abstract base class, not a test
+ "**/BaseStagedReactorTest.java"
+ ;; Depends on org.mortbay.jetty.testwars:test-war-dump
+ "**/WarBuilderTest.java")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'chdir
+ (lambda _
+ ;; Tests assume we are in this directory
+ (chdir "core/pax-exam-spi")))
+ (add-before 'check 'fix-tests
+ (lambda _
+ ;; One test checks that this file is present.
+ (mkdir-p
"build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi")
+ (with-output-to-file
+
"build/classes/META-INF/maven/org.ops4j.pax.exam/pax-exam-spi/pom.properties"
+ (lambda _
+ (display
+ (string-append "artifactId = pax-exam-spi\n"
+ "version = " ,(package-version
java-ops4j-pax-exam-core-spi)))))
+ ;; Maven puts compilation results in the target directory, while
we
+ ;; put them in the build directory.
+ (substitute*
'("src/test/java/org/ops4j/pax/exam/spi/war/WarBuilderTest.java"
+
"src/test/java/org/ops4j/pax/exam/spi/war/WarTestProbeBuilderTest.java"
+
"src/test/java/org/ops4j/pax/exam/spi/war/ZipBuilderTest.java")
+ (("target") "build"))
+ ;; One test is expected to fail, but it doesn't throw the
expected exception
+ (substitute*
"src/test/java/org/ops4j/pax/exam/spi/reactors/BaseStagedReactorTest.java"
+ (("AssertionError") "IllegalArgumentException")))))))
+ (inputs
+ `(("java-ops4j-pax-exam-core" ,java-ops4j-pax-exam-core)
+ ("lang" ,java-ops4j-base-lang)
+ ("monitors" ,java-ops4j-base-monitors)
+ ("store" ,java-ops4j-base-store)
+ ("io" ,java-ops4j-base-io)
+ ("spi" ,java-ops4j-base-spi)
+ ("osgi" ,java-osgi-core)
+ ("slf4j" ,java-slf4j-api)
+ ("tinybundles" ,java-ops4j-pax-tinybundles)))
+ (native-inputs
+ `(("mockito" ,java-mockito-1)
+ ("junit" ,java-junit)
+ ("hamcrest" ,java-hamcrest-core)
+ ("cglib" ,java-cglib)
+ ("objenesis" ,java-objenesis)
+ ("asm" ,java-asm)))))
- 10/24: gnu: Add java-aqute-bndlib., (continued)
- 10/24: gnu: Add java-aqute-bndlib., julien lepiller, 2017/10/10
- 19/24: gnu: Add java-snakeyaml., julien lepiller, 2017/10/10
- 17/24: gnu: Add java-fasterxml-jackson-databind., julien lepiller, 2017/10/10
- 08/24: gnu: Add java-aqute-bnd-annotation., julien lepiller, 2017/10/10
- 12/24: gnu: Add java-ops4j-pax-exam-core., julien lepiller, 2017/10/10
- 14/24: gnu: Add java-ops4j-pax-exam-core-junit., julien lepiller, 2017/10/10
- 24/24: services: vpn: Fix default tls-auth configuration., julien lepiller, 2017/10/10
- 20/24: gnu: Add java-fasterxml-jackson-dataformat-yaml., julien lepiller, 2017/10/10
- 15/24: gnu: Add java-fasterxml-jackson-annotations., julien lepiller, 2017/10/10
- 18/24: gnu: Add java-fasterxml-jackson-modules-base-jaxb., julien lepiller, 2017/10/10
- 13/24: gnu: Add java-ops4j-pax-exam-core-spi.,
julien lepiller <=
- 22/24: gnu: Add java-woodstox-core., julien lepiller, 2017/10/10
- 21/24: gnu: Add java-stax2-api., julien lepiller, 2017/10/10
- 23/24: gnu: Add java-fasterxml-jackson-dataformat-xml., julien lepiller, 2017/10/10
- 11/24: gnu: Add java-ops4j-pax-tinybundles., julien lepiller, 2017/10/10
- 16/24: gnu: Add java-fasterxml-jackson-core., julien lepiller, 2017/10/10