Summary: | dev-java/angus-mail-1.0.0: comes with test excludes for unresolved test failures | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Volkmar W. Pogatzki <gentoo> |
Component: | New packages | Assignee: | Java team <java> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | fordfrog, gentoo |
Priority: | Normal | Keywords: | TESTFAILURE |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 856409 | ||
Attachments: |
build log
build log after adding JAVA_TEST_EXTRA_ARGS=( -ea ) |
Created attachment 822748 [details]
build log after adding JAVA_TEST_EXTRA_ARGS=( -ea )
Adding "-ea" to JAVA_TEST_EXTRA_ARGS solves some of "java.lang.AssertionError" which helps reducing the number of test exclusions:
src_test() {
JAVA_TEST_EXTRA_ARGS=( -ea )
JAVA_TEST_GENTOO_CLASSPATH="junit-4"
JAVA_TEST_RESOURCE_DIRS="providers/angus-mail/src/test/resources"
JAVA_TEST_SRC_DIR="providers/angus-mail/src/test/java"
pushd providers/angus-mail/src/test/java || die
local JAVA_TEST_RUN_ONLY=$(find * \
-name "*Test.java" \
! -name "MailHandlerTest.java" \
! -name "ParametersNoStrictTest.java" \
! -name "NoEncodeFileNameNoEncodeParametersTest.java" \
! -name "EncodeFileNameTest.java" \
! -name "EncodeFileNameNoEncodeParametersTest.java" \
! -name "ContentTypeCleanerTest.java" \
! -name "LineInputStreamUtf8Test.java" \
)
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
popd
java-pkg-simple_src_test
}
angus-mail won't come soon. closing. |
Created attachment 821722 [details] build log src_test() { JAVA_TEST_GENTOO_CLASSPATH="junit-4" JAVA_TEST_RESOURCE_DIRS="providers/angus-mail/src/test/resources" JAVA_TEST_SRC_DIR="providers/angus-mail/src/test/java" pushd providers/angus-mail/src/test/java || die local JAVA_TEST_RUN_ONLY=$(find * \ -name "*Test.java" \ ! -name "MailHandlerTest.java" \ ! -name "DurationFilterTest.java" \ ! -name "CompactFormatterTest.java" \ ! -name "CollectorFormatterTest.java" \ ! -name "ParametersNoStrictTest.java" \ ! -name "NoEncodeFileNameNoEncodeParametersTest.java" \ ! -name "EncodeFileNameTest.java" \ ! -name "EncodeFileNameNoEncodeParametersTest.java" \ ! -name "ContentTypeCleanerTest.java" \ ! -name "LineInputStreamUtf8Test.java" \ ) JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" popd java-pkg-simple_src_test }