From 99f7eb62e2e7f2383087fcce65a7ffe721eb6f4d Mon Sep 17 00:00:00 2001 From: Anton Pyrogovskyi Date: Sun, 17 Jul 2022 20:54:40 +0200 Subject: [PATCH] contrib: build wireleap_socks for tests --- contrib/run-tests.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contrib/run-tests.sh b/contrib/run-tests.sh index c2b7a7cc..0482f850 100755 --- a/contrib/run-tests.sh +++ b/contrib/run-tests.sh @@ -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"