Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temurin testimage built without gtest support #3956

Open
zzambers opened this issue Sep 25, 2024 · 1 comment
Open

Temurin testimage built without gtest support #3956

zzambers opened this issue Sep 25, 2024 · 1 comment
Labels
jenkins Issues that enhance or fix our jenkins server testing Issues that enhance or fix our test suites

Comments

@zzambers
Copy link

Seems like testimage is being built without gtest, causing failures of gtest hotspot tests.

Error:

java.lang.Error: TESTBUG: the library has not been found in /home/jenkins/workspace/Grinder/jdkbinary/openjdk-test-image/hotspot/jtreg/native. Did you forget to use --with-gtest to configure?
	at GTestWrapper.main(GTestWrapper.java:62)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:1583)

JavaTest Message: Test threw exception: java.lang.Error
JavaTest Message: shutting down test
@github-actions github-actions bot added jenkins Issues that enhance or fix our jenkins server testing Issues that enhance or fix our test suites labels Sep 25, 2024
@judovana
Copy link
Contributor

Slightly more info in following snippet

  if [[ "$major" -ge "15" ]]; then
    #gtest was removed in jdk15. Recreating it.
    if [ "$major" -ge "21" ] ; then
        GTEST_TAG=v1.14.0
    else
        GTEST_TAG=release-1.8.1
    fi
    pushd ${SRC_DIR}/test/
      mkdir fmw
      wget https://github.com/google/googletest/archive/refs/tags/${GTEST_TAG}.tar.gz
      pushd ${SRC_DIR}/test/fmw
        tar -xf ../${GTEST_TAG}.tar.gz
        mv googletest-${GTEST_TAG#v} gtest
        EXTRA_CONFIGURE_ARGS="$EXTRA_CONFIGURE_ARGS --with-gtest=${SRC_DIR}/test/fmw/gtest"
      popd
    popd
  fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jenkins Issues that enhance or fix our jenkins server testing Issues that enhance or fix our test suites
Projects
Status: Todo
Development

No branches or pull requests

2 participants