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

Bug 863386

Summary: dev-java/byte-buddy-1.14.{0,13}: has JAVA_TEST_EXCLUDES for unresolved test failures
Product: Gentoo Linux Reporter: Volkmar W. Pogatzki <gentoo>
Component: Current packagesAssignee: Java team <java>
Status: CONFIRMED ---    
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

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.