@@ -70,7 +70,7 @@ BUILDTAGS += ${EXTRA_BUILDTAGS}
7070# N/B: This value is managed by Renovate, manual changes are
7171# possible, as long as they don't disturb the formatting
7272# (i.e. DO NOT ADD A 'v' prefix!)
73- GOLANGCI_LINT_VERSION := 2.4 .0
73+ GOLANGCI_LINT_VERSION := 2.5 .0
7474PYTHON ?= $(shell command -v python3 python|head -n1)
7575PKG_MANAGER ?= $(shell command -v dnf yum|head -n1)
7676# ~/.local/bin is not in PATH on all systems
@@ -150,12 +150,17 @@ GINKGO ?= ./bin/ginkgo
150150GINKGO_FLAKE_ATTEMPTS ?= 0
151151GINKGO_NO_COLOR ?= y
152152
153+ # The type of transport to use for testing remote service.
154+ # Must be one of unix, tcp, tls, mtls
155+ export REMOTESYSTEM_TRANSPORT ?= unix
156+ export REMOTEINTEGRATION_TRANSPORT ?= unix
157+
153158# Conditional required to produce empty-output if binary not built yet.
154159RELEASE_VERSION = $(shell if test -x test/version/version; then test/version/version; fi)
155160RELEASE_NUMBER = $(shell echo "$(call err_if_empty,RELEASE_VERSION) " | sed -e 's/^v\(.* \) /\1/')
156161
157- # If non-empty, logs all output from server during remote system testing
158- PODMAN_SERVER_LOG ?=
162+ # Logs all output from server during remote system testing to this file
163+ PODMAN_SERVER_LOG ?= /dev/null
159164
160165# Ensure GOBIN is not set so the default (`go env GOPATH`/bin) is used.
161166override undefine GOBIN
@@ -680,6 +685,7 @@ ginkgo-run: .install.ginkgo
680685ginkgo :
681686 $(MAKE ) ginkgo-run TAGS=" $( BUILDTAGS) "
682687
688+
683689.PHONY : ginkgo-remote
684690ginkgo-remote :
685691 $(MAKE ) ginkgo-run TAGS=" $( REMOTETAGS) remote_testing"
@@ -709,44 +715,15 @@ localsystem:
709715 PODMAN=$(CURDIR ) /bin/podman QUADLET=$(CURDIR ) /bin/quadlet bats -T --filter-tags ' !ci:parallel' test/system/
710716 PODMAN=$(CURDIR ) /bin/podman QUADLET=$(CURDIR ) /bin/quadlet bats -T --filter-tags ci:parallel -j $$(nproc ) test/system/
711717
718+
712719.PHONY : remotesystem
713720remotesystem :
714721 # Wipe existing config, database, and cache: start with clean slate.
715722 $(RM ) -rf ${HOME} /.local/share/containers ${HOME} /.config/containers
716- # . Make sure there's no active podman server - if there is,
717- # it's not us, and we have no way to know what it is.
718- # . Start server. Wait to make sure it comes up.
719- # . Run tests, pretty much the same as localsystem.
720- # . Stop server.
721- rc=0; \
722- if timeout -v 1 true ; then \
723- if ./bin/podman-remote info; then \
724- echo " Error: podman system service (not ours) is already running" >&2 ; \
725- exit 1; \
726- fi ; \
727- ./bin/podman system service --timeout=0 > $(if $(PODMAN_SERVER_LOG ) ,$(PODMAN_SERVER_LOG ) ,/dev/null) 2>&1 & \
728- retry=5; \
729- while [ $$ retry -ge 0 ]; do\
730- echo Waiting for server...; \
731- sleep 1; \
732- ./bin/podman-remote info > /dev/null 2>&1 && break ; \
733- retry=$$(expr $$retry - 1 ) ; \
734- done ; \
735- if [ $$ retry -lt 0 ]; then\
736- echo " Error: ./bin/podman system service did not come up" >&2 ; \
737- exit 1; \
738- fi ; \
739- env PODMAN=" $( CURDIR) /bin/podman-remote" bats -T --filter-tags ' !ci:parallel' test/system/ ; \
740- rc=$$? ; \
741- if [ $$ rc -eq 0 ]; then \
742- env PODMAN=" $( CURDIR) /bin/podman-remote" bats -T --filter-tags ci:parallel -j $$(nproc ) test/system/ ; \
743- rc=$$? ; \
744- fi ; \
745- kill %1; \
746- else \
747- echo " Skipping $@ : 'timeout -v' unavailable'" ; \
748- fi ; \
749- exit $$ rc
723+ PODMAN=$(CURDIR ) /bin/podman-remote QUADLET=$(CURDIR ) /bin/quadlet \
724+ bats -T --filter-tags ' !ci:parallel' test/system/
725+ PODMAN=$(CURDIR ) /bin/podman-remote QUADLET=$(CURDIR ) /bin/quadlet \
726+ bats -T --filter-tags ci:parallel -j $$(nproc ) test/system/
750727
751728.PHONY : localapiv2-bash
752729localapiv2-bash :
0 commit comments