mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
Make it possible to only build wasm testcases
Signed-off-by: Andrea Peruffo <andrea.peruffo1982@gmail.com>
This commit is contained in:
committed by
Ashutosh Narkar
parent
64b01e1b04
commit
83f8dc636b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user