Skip to content

Commit

Permalink
contrib: build wireleap_socks for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
a3s7p committed Jul 17, 2022
1 parent d15d53b commit 99f7eb6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions contrib/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ if [ "$GOOS" = 'linux' ] || [ "$GOOS" = 'darwin' ]; then
mv wireleap_tun/wireleap_tun "$SRCDIR/sub/initcmd/embedded"
fi

info "building wireleap_socks"
cd "$SRCDIR/wireleap_socks"
go get -v -d ./...
CGO_ENABLED=0 go build
cd -
if [ "$GOOS" = 'windows' ]; then
mv "$SRCDIR/wireleap_socks/wireleap_socks.exe" "$SRCDIR/sub/initcmd/embedded/wireleap_socks.exe"
else
mv "$SRCDIR/wireleap_socks/wireleap_socks" "$SRCDIR/sub/initcmd/embedded/wireleap_socks"
fi

VERSIONS=
for c in common/api common/cli client; do
VERSIONS="$VERSIONS -X github.com/wireleap/$c/version.GITREV=$GITVERSION"
Expand Down

0 comments on commit 99f7eb6

Please sign in to comment.