Files
deploy/hack/test.sh
T
cc1b6d03da chore: upgrade to go 1.20 (#12014)
* chore: Upgrade Golang to 1.19 (#10176) (#10186)

* Upgrade Golang to 1.19

Signed-off-by: OmarKalloush <[email protected]>

* go mod tidy with go 1.19

Signed-off-by: OmarKalloush <[email protected]>

* Replace deprecated ioutil

Signed-off-by: OmarKalloush <[email protected]>

* make codegen changes

Signed-off-by: OmarKalloush <[email protected]>

* Codegen Changes

Signed-off-by: OmarKalloush <[email protected]>

chore: upgrade golangci-lint to 1.50.1

Signed-off-by: Michael Crenshaw <[email protected]>

missed a spot

Signed-off-by: Michael Crenshaw <[email protected]>

tidy

Signed-off-by: Michael Crenshaw <[email protected]>

fix bad merge

Signed-off-by: Michael Crenshaw <[email protected]>

Author:    Michael Crenshaw <[email protected]>
Co-Authored-By: OmarKalloush <[email protected]>

fix indentation

fix lint and codegen

Signed-off-by: Michael Crenshaw <[email protected]>

* 1.20

Signed-off-by: Michael Crenshaw <[email protected]>

* fix lint errors

Signed-off-by: Michael Crenshaw <[email protected]>

* fix "syntax error: unexpected var after top level declaration" in "make test-race-local"

Signed-off-by: Michael Crenshaw <[email protected]>

---------

Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: OmarKalloush <[email protected]>
2023-02-17 15:21:14 -05:00

27 lines
620 B
Bash
Executable File

#!/bin/bash
set -eux -o pipefail
which go-junit-report || go install github.com/jstemmer/go-junit-report@latest
TEST_RESULTS=${TEST_RESULTS:-test-results}
TEST_FLAGS=
if test "${ARGOCD_TEST_PARALLELISM:-}" != ""; then
TEST_FLAGS="$TEST_FLAGS -p $ARGOCD_TEST_PARALLELISM"
fi
if test "${ARGOCD_TEST_VERBOSE:-}" != ""; then
TEST_FLAGS="$TEST_FLAGS -v"
fi
mkdir -p $TEST_RESULTS
report() {
set -eux -o pipefail
go-junit-report < $TEST_RESULTS/test.out > $TEST_RESULTS/junit.xml
}
trap 'report' EXIT
GODEBUG="tarinsecurepath=0,zipinsecurepath=0" go test $TEST_FLAGS -failfast $* 2>&1 | tee $TEST_RESULTS/test.out