From a74625fa362c82467c7eb2a4c593f22e4ea8c979 Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Fri, 27 Sep 2024 17:31:48 -0700 Subject: [PATCH] add required build flags to rpcimportable test --- .github/workflows/ci.yml | 2 +- contrib/rpcimportable/test.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 contrib/rpcimportable/test.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 518823b42f..9131d389e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,7 +115,7 @@ jobs: run: cat go.mod - name: go test working-directory: contrib/rpcimportable - run: go test ./... + run: ./test.sh ci-ok: runs-on: ubuntu-22.04 needs: diff --git a/contrib/rpcimportable/test.sh b/contrib/rpcimportable/test.sh new file mode 100755 index 0000000000..16a536f7d3 --- /dev/null +++ b/contrib/rpcimportable/test.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# run rpcimportable test with the required build flags + +set -eo pipefail + +cd "$(dirname "$0")" + +go test -tags libsecp256k1_sdk -ldflags=all="-extldflags=-Wl,--allow-multiple-definition" ./...