mirror of
https://github.com/openshift/installer.git
synced 2026-02-06 09:47:02 +01:00
This patch adds an initial set of integration test for the agent installer, based on the testscript package
14 lines
366 B
Bash
Executable File
14 lines
366 B
Bash
Executable File
#!/bin/sh
|
|
# Example: ./hack/go-test.sh
|
|
|
|
if [ "$IS_CONTAINER" != "" ]; then
|
|
go test -short ./cmd/... ./data/... ./pkg/... "${@}"
|
|
else
|
|
podman run --rm \
|
|
--env IS_CONTAINER=TRUE \
|
|
--volume "${PWD}:/go/src/github.com/openshift/installer:z" \
|
|
--workdir /go/src/github.com/openshift/installer \
|
|
docker.io/golang:1.18 \
|
|
./hack/go-test.sh "${@}"
|
|
fi
|