Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 875566

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 packagesAssignee: 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 )

Description Volkmar W. Pogatzki 2022-10-06 06:48:44 UTC
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
}
Comment 1 Volkmar W. Pogatzki 2022-10-07 15:44:16 UTC
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
}
Comment 2 Volkmar W. Pogatzki 2024-04-07 08:10:21 UTC
angus-mail won't come soon. closing.