Skip to content

Commit

Permalink
fix: fix hz test shell
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyJavaBean committed Jan 22, 2025
1 parent e0bafb3 commit e504a55
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/hz/test_hz_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,20 @@ compile_hz() {
judge_exit "$?"
}


PATH_BIN=$PWD/bin
mkdir -p $PATH_BIN
export PATH=$PATH_BIN:$PATH

install_dependent_tools() {
# install thriftgo
go install github.com/cloudwego/thriftgo@latest

# install protoc
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip
unzip -d protoc-3.19.4-linux-x86_64 protoc-3.19.4-linux-x86_64.zip
cp protoc-3.19.4-linux-x86_64/bin/protoc /usr/local/bin/protoc
cp -r protoc-3.19.4-linux-x86_64/include/google /usr/local/include/google
cp protoc-3.19.4-linux-x86_64/bin/protoc $PATH_BIN
cp -r protoc-3.19.4-linux-x86_64/include/google $PATH_BIN
}

test_thrift() {
Expand Down

0 comments on commit e504a55

Please sign in to comment.