github.com/lfch/etcd-io/tests/v3@v3.0.0-20221004140520-eac99acd3e9d/functional/build.sh (about) 1 #!/usr/bin/env bash 2 3 if ! [[ "$0" =~ "tests/functional/build" ]]; then 4 echo "must be run from repository root" 5 exit 255 6 fi 7 8 outdir="${BINDIR:-../bin}" 9 10 ( 11 cd ./tests 12 CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o "${outdir}/etcd-agent" ./functional/cmd/etcd-agent 13 CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o "${outdir}/etcd-proxy" ./functional/cmd/etcd-proxy 14 CGO_ENABLED=0 go build -v -installsuffix cgo -ldflags "-s" -o "${outdir}/etcd-runner" ./functional/cmd/etcd-runner 15 CGO_ENABLED=0 go test -v -installsuffix cgo -ldflags "-s" -c -o "${outdir}/etcd-tester" ./functional/cmd/etcd-tester 16 )