Closed smlambert closed 5 years ago
Some background info:
I am currently running the tests with these env variables after building openj9 locally.
export JAVA_BIN=/some/path/to/openj9/build/linux-x86_64-normal-server-release/images/jdk/bin
export PATH=$JAVA_BIN:$PATH
export JDK_VERSION=11
export SPEC=linux_x86-64_cmprssptrs
export BUILD_LIST=functional/Java8andUp
export JDK_IMPL=openj9
make -f run_configure.mk && make compile && make _sanity
After running the test I got unsatisfied link errors because libj9ben.so is not in a dir listed in the -Djava.library.path
I manually copy over ..build/linux-x86_64-normal-server-release/vm/libj9ben.so
to the ..build/linux-x86_64-normal-server-release/images/jdk/lib/compressedrefs/
dir and the issues are resolved.
@smlambert It looks like /test/functional/Java8andUp/src/j9vm/test/jni/PthreadTest.java
and /test/functional/Java8andUp/src/org/openj9/test/osthread/ReattachAfterExit.java
both make use of j9ben
local runs need to set NATIVE_TEST_LIBS=<path to native test libraries> (default to native-test-libs folder at same level as JDK_HOME)
I have an issue opened to change the default location for NATIVE_TEST_LIBS
to make this more user-friendly. https://github.com/eclipse/openj9/issues/3701
j9ben is included in the image. Perhaps the title of this Issue needs to be changed?
Yes, I misunderstood @tajila 's original request. I believe the original request should be covered by #3701. I would like to confirm this with Tobi and @llxia - if it is the case, then I will close this issue.
Yes #3701 addresses my concerns. This issue can be closed
Very good, thanks for clarifying. :)
Some new vmTests will be added by @tajila that require this native test library to be included with the other native test libraries. It is currently being built, but not copied/included in native test image.