Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875566 - dev-java/angus-mail-1.0.0: comes with test excludes for unresolved test failures
Summary: dev-java/angus-mail-1.0.0: comes with test excludes for unresolved test failures
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: Java-test-failures
  Show dependency tree
 
Reported: 2022-10-06 06:48 UTC by Volkmar W. Pogatzki
Modified: 2024-04-07 08:10 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,68.47 KB, text/plain)
2022-10-06 06:48 UTC, Volkmar W. Pogatzki
Details
build log after adding JAVA_TEST_EXTRA_ARGS=( -ea ) (build.log,66.03 KB, text/plain)
2022-10-07 15:44 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
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.