Lvnszn commented on code in PR #15:
URL: https://github.com/apache/dubbo-benchmark/pull/15#discussion_r939893409
##########
benchmark-go.sh:
##########
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+
+usage() {
+ echo "Usage: ${PROGRAM_NAME} command dirname"
+ echo " -h help"
+ echo "dirname: test module name"
+}
+
+run() {
+ if [ -d "${PROJECT_DIR}" ]; then
+ go mod tidy
+ export DUBBO_GO_CONFIG_PATH=${PROJECT_DIR}/conf/dubbogo.yaml
+ CMD="go run ${PROJECT_DIR}/main.go ${ARGS}"
+ echo "command is: ${CMD}"
+ ${CMD}
+ fi
+}
+
+PROGRAM_NAME=$0
+ARGS=""
+
+
+PROJECT_DIR=$1
+shift
+if [ ! -d "${PROJECT_DIR}" ]; then
+ usage
+ exit 0
+fi
+
+ARGS=$@
+
+
+run
+
+
+
+
+
+
Review Comment:
这块其实可以删
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]