Skip to content

Commit

Permalink
Make it possible to only build wasm testcases
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>
  • Loading branch information
andreaTP authored and ashutosh-narkar committed Aug 14, 2024
1 parent 64b01e1 commit 83f8dc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/run-wasm-rego-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,18 @@ ASSETS=${ASSETS:-"$PWD/test/wasm/assets"}
VERBOSE=${VERBOSE:-"0"}
TESTGEN_CONTAINER_NAME="opa-wasm-testgen-container"
TESTRUN_CONTAINER_NAME="opa-wasm-testrun-container"
WASM_BUILD_ONLY=${WASM_BUILD_ONLY:-"false"}

function main {
trap interrupt SIGINT SIGTERM
mkdir -p $PWD/.go/cache/go-build
mkdir -p $PWD/.go/bin
generate_testcases
run_testcases
if [[ "${WASM_BUILD_ONLY}" != "true" ]]; then
run_testcases
else
echo "Running wasm tests disabled by environment variable."
fi
}

function interrupt {
Expand Down

0 comments on commit 83f8dc6

Please sign in to comment.