From 444e9874424580361e00547b597d213370045057 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 18 Apr 2021 09:57:30 +0200 Subject: [PATCH] ci: run tests with verbose output --- .builds/archlinux.yml | 4 ++-- .builds/freebsd.yml | 4 ++-- .builds/openbsd.yml | 4 ++-- .gitlab-ci.yml | 2 +- Makefile | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.builds/archlinux.yml b/.builds/archlinux.yml index d8ebea7..90b0897 100644 --- a/.builds/archlinux.yml +++ b/.builds/archlinux.yml @@ -4,7 +4,7 @@ packages: tasks: - all: | cd safcm - ./ci/run + ./ci/run TESTFLAGS=-v # Also run all tests as root sudo chown -Rh root:root . - sudo ./ci/run + sudo ./ci/run TESTFLAGS=-v diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index e5dba6d..6f560cf 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -6,7 +6,7 @@ tasks: - all: | sudo ln -sf /usr/local/bin/gmake /usr/bin/make cd safcm - ./ci/run + ./ci/run TESTFLAGS=-v # Also run all tests as root sudo chown -Rh root:wheel . - sudo ./ci/run + sudo ./ci/run TESTFLAGS=-v diff --git a/.builds/openbsd.yml b/.builds/openbsd.yml index 7f1d40c..05bb9a7 100644 --- a/.builds/openbsd.yml +++ b/.builds/openbsd.yml @@ -14,8 +14,8 @@ tasks: doas ln -sf /usr/local/bin/gmake /usr/bin/make cd safcm # Go does not yet support -race on OpenBSD - ./ci/run GOFLAGS= + ./ci/run GOFLAGS= TESTFLAGS=-v # Also run all tests as root (-R and -h conflict on OpenBSD) doas chown -R root:wheel . # Remove $HOME hack once Go 1.16 is available - doas /bin/sh -c "HOME=$HOME ./ci/run GOFLAGS=" + doas /bin/sh -c "HOME=$HOME ./ci/run GOFLAGS= TESTFLAGS=-v" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10f9811..2ffbdf3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ - ln -sf /usr/lib/go-1.16/bin/go $HOME/go/bin - ln -sf /usr/lib/go-1.16/bin/gofmt $HOME/go/bin # - - ./ci/run + - ./ci/run TESTFLAGS=-v debian-sid: <<: *template-docker diff --git a/Makefile b/Makefile index f4cc011..c756989 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ safcm: test: go vet ./... - go test $(GOFLAGS) ./... + go test $(GOFLAGS) $(TESTFLAGS) ./... clean: rm -rf remote/helpers/ -- 2.43.2