diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-10-18 11:37:15 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-10-19 20:20:26 +0200 |
commit | 0912295778c330339aa22de4e7635d3f26b983d4 (patch) | |
tree | e81b5400deb26acfcb2e1fedfeb691a8cffa9bc7 /eclass | |
parent | dev-java/xmlgraphics-commons: Stabilize 2.9 arm64, #916015 (diff) | |
download | gentoo-0912295778c330339aa22de4e7635d3f26b983d4.tar.gz gentoo-0912295778c330339aa22de4e7635d3f26b983d4.tar.bz2 gentoo-0912295778c330339aa22de4e7635d3f26b983d4.zip |
java-pkg-simple.eclass: improve description of "generated-test"
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/33389
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-pkg-simple.eclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass index ea4833727ea1..d37ea93e0269 100644 --- a/eclass/java-pkg-simple.eclass +++ b/eclass/java-pkg-simple.eclass @@ -485,8 +485,10 @@ java-pkg-simple_src_install() { # @FUNCTION: java-pkg-simple_src_test # @DESCRIPTION: # src_test for simple single java jar file. -# It will perform test with frameworks that are defined in -# ${JAVA_TESTING_FRAMEWORKS}. +# It will compile test classes from test sources using ejavac and perform tests +# with frameworks that are defined in ${JAVA_TESTING_FRAMEWORKS}. +# test-classes compiled with alternative compilers like groovyc need to be placed +# in the "generated-test" directory. java-pkg-simple_src_test() { local test_sources=test_sources.lst classes=target/test-classes moduleinfo local tests_to_run classpath @@ -502,12 +504,13 @@ java-pkg-simple_src_test() { fi # https://bugs.gentoo.org/906311 + # This will remove target/test-classes. Do not put any test-classes there manually. rm -rf ${classes} || die # create the target directory mkdir -p ${classes} || die "Could not create target directory for testing" - # generated test classes should get generated into "generated-test" directory + # generated test classes should get compiled into "generated-test" directory if [[ -d generated-test ]]; then cp -r generated-test/* "${classes}" || die "cannot copy generated test classes" fi |