This is an automated email from the ASF dual-hosted git repository.
zrlw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-integration-cases.git
The following commit(s) were added to refs/heads/main by this push:
new d97badc0 Add jctools-core.jar to testing class path (#80)
d97badc0 is described below
commit d97badc047e5582e85fcc65178509f64a5bd7259
Author: zrlw <[email protected]>
AuthorDate: Tue Nov 11 22:55:04 2025 +0800
Add jctools-core.jar to testing class path (#80)
---
test/dubbo-test-runner/build.sh | 1 +
test/dubbo-test-runner/src/docker/Dockerfile | 2 +-
test/dubbo-test-runner/src/docker/run-dubbo-app.sh | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/dubbo-test-runner/build.sh b/test/dubbo-test-runner/build.sh
index 5ee631f0..3ba254d3 100755
--- a/test/dubbo-test-runner/build.sh
+++ b/test/dubbo-test-runner/build.sh
@@ -21,4 +21,5 @@ cp -r $DIR/src/docker/* $DOCKER_DIR/
cp $DIR/target/dubbo-test-runner-*-jar-with-dependencies.jar
$DOCKER_DIR/dubbo-test-runner.jar
cd $DOCKER_DIR
+wget
https://repo1.maven.org/maven2/org/jctools/jctools-core/4.0.5/jctools-core-4.0.5.jar
-O jctools-core.jar
docker build -t dubbo/sample-test:$JAVA_VER . --build-arg
DEBIAN_MIRROR=$DEBIAN_MIRROR --build-arg JAVA_VER=$JAVA_VER
diff --git a/test/dubbo-test-runner/src/docker/Dockerfile
b/test/dubbo-test-runner/src/docker/Dockerfile
index b9feec45..a4a6dd17 100644
--- a/test/dubbo-test-runner/src/docker/Dockerfile
+++ b/test/dubbo-test-runner/src/docker/Dockerfile
@@ -64,7 +64,7 @@ ENV JAVA_OPTS="" \
TEST_PATTERNS="**/*IT.class"
-ADD dubbo-test-runner.jar *.sh /usr/local/dubbo/
+ADD dubbo-test-runner.jar *.sh jctools-core.jar /usr/local/dubbo/
WORKDIR /usr/local/dubbo/
#ENTRYPOINT exec java $JAVA_OPTS -jar dubbo-test-runner.jar $TEST_CLASSES_DIR
$APP_CLASSES_DIR $APP_DEPENDENCY_DIR
diff --git a/test/dubbo-test-runner/src/docker/run-dubbo-app.sh
b/test/dubbo-test-runner/src/docker/run-dubbo-app.sh
index 04c92b7b..40d2d9cc 100755
--- a/test/dubbo-test-runner/src/docker/run-dubbo-app.sh
+++ b/test/dubbo-test-runner/src/docker/run-dubbo-app.sh
@@ -29,7 +29,7 @@ fi
echo "Running app : [$APP_MAIN_CLASS] ..."
start=$SECONDS
-java -server $JAVA_OPTS $DEBUG_OPTS -cp
"$APP_CLASSES_DIR:$APP_DEPENDENCY_DIR/*" $APP_MAIN_CLASS 2>&1 &
+java -server $JAVA_OPTS $DEBUG_OPTS -cp
"$APP_CLASSES_DIR:$APP_DEPENDENCY_DIR/*:$APP_CLASSES_DIR/../../jctools-core.jar"
$APP_MAIN_CLASS 2>&1 &
pid=$!
echo "Wait for process to exit: $pid .."