Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863386 - dev-java/byte-buddy-1.14.{0,13}: has JAVA_TEST_EXCLUDES for unresolved test failures
Summary: dev-java/byte-buddy-1.14.{0,13}: has JAVA_TEST_EXCLUDES for unresolved test f...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current 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-08-03 13:03 UTC by Volkmar W. Pogatzki
Modified: 2024-04-15 15:46 UTC (History)
2 users (show)

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


Attachments
build log (build.log,336.96 KB, text/plain)
2022-08-03 13:03 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-08-03 13:03:59 UTC
Created attachment 797266 [details]
build log

src_test() {
    JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-4"

    # einfo "Setting -Djava.library.path"
    # This would work only after manually adding libjnidispatch.so to /usr/share/jna-4/lib/jna.jar,
    # done with ( jar -uf /usr/share/jna-4/lib/jna.jar -C . com/sun/jna/linux-x86-64/libjnidispatch )
#   JAVA_TEST_EXTRA_ARGS=( -Djava.library.path+="$(java-config -i jna-4)" com.sun.jna.Native )
    # Otherwise fails with:
    # Exception in thread "main" java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path

    einfo "Testing byte-buddy-agent"
    JAVA_TEST_SRC_DIR="byte-buddy-agent/src/test/java"
    # Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path
    JAVA_TEST_EXCLUDES=(
        net.bytebuddy.agent.VirtualMachineAttachmentTest
    )
    java-pkg-simple_src_test

    einfo "Testing byte-buddy-dep"
    JAVA_TEST_SRC_DIR="byte-buddy-dep/src/test/java"
    JAVA_TEST_RESOURCE_DIRS=(
        byte-buddy-dep/src/test/resources
        byte-buddy-dep/src/test/precompiled*
    )

    # what "mvn test" does with java 17 is:
    # Tests run: 9855, Failures: 0, Errors: 0, Skipped: 0
    JAVA_TEST_EXCLUDES+=(
        net.bytebuddy.pool.TypePoolDefaultMethodDescriptionTest # 39 tests
        # v1.12.13
        net.bytebuddy.build.CachedReturnPluginTest  # 44 tests
        net.bytebuddy.build.CachedReturnPluginOtherTest # 4 tests 
    )
    java-pkg-simple_src_test
}
Comment 1 Volkmar W. Pogatzki 2024-04-15 15:46:08 UTC
Updating summary.