drydock/tools/baclient_build.sh
Sergiy Markin e31b35901d Integration tests update
Change-Id: I9b0efe3f2e6fcb82450197d6349be30e853a55b8
2025-04-30 19:12:04 +00:00

20 lines
433 B
Bash
Executable File

#!/bin/bash
# Install golang-go package, and build the baclient library
set -ex
if $(uname -a | grep -q Ubuntu); then
GOPATH=$1
BUILD_DIR=$2
if [[ ! -f ./baclient_built ]]; then
whereis go
go env
GO111MODULE=off GOPATH=${GOPATH} go build -v -o ${BUILD_DIR}/baclient baclient
else
echo "Baclient library is already built. No action."
fi
else
echo "Only support testing on Ubuntu hosts at this time."
fi