You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Makefile
+35-13Lines changed: 35 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -90,13 +90,13 @@ test-sequential: acceptance
90
90
# Run testcontainers tests with a matrix of all database versions
91
91
# Usage: make testcontainers-matrix TESTARGS="TestAccUser"
92
92
testcontainers-matrix: fmtcheck bin/terraform ## Run test matrix across all database versions
93
-
@cd $(CURDIR)&& PATH="$(CURDIR)/bin:${PATH}" PARALLEL=4 GOTOOLCHAIN=auto TF_ACC=1 go run scripts/test-runner.go $(if$(TESTARGS),$(TESTARGS),WithTestcontainers)
93
+
@cd $(CURDIR)&& PATH="$(CURDIR)/bin:${PATH}" PARALLEL=4 TF_ACC=1 go run scripts/test-runner.go $(if$(TESTARGS),$(TESTARGS),WithTestcontainers)
94
94
95
95
# Run testcontainers tests for a specific database image
96
96
# Usage: make testcontainers-image DOCKER_IMAGE=mysql:8.0
97
97
# make testcontainers-image DOCKER_IMAGE=tidb:8.5.3
98
98
testcontainers-image: fmtcheck bin/terraform ## Run tests for a specific database image (set DOCKER_IMAGE)
99
-
@PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 GOTOOLCHAIN=auto go test -tags=testcontainers $(TEST) -v $(TESTARGS) -timeout=15m
99
+
@PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 go test -tags=testcontainers $(TEST) -v $(TESTARGS) -timeout=15m
100
100
101
101
bin/terraform: ## Download Terraform binary
102
102
mkdir -p "$(CURDIR)/bin"
@@ -124,13 +124,13 @@ testversion%: ## Run tests against MySQL version (e.g., testversion8.0) [backwar
124
124
docker rmi mysql:$*2>/dev/null ||true;\
125
125
docker manifest rm mysql:$*2>/dev/null ||true;\
126
126
docker pull --platform linux/amd64 mysql:$*2>&1| grep -v "no match"||true;\
127
-
DOCKER_DEFAULT_PLATFORM=linux/amd64 DOCKER_IMAGE=mysql:$* PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 GOTOOLCHAIN=auto go test -tags=testcontainers ./mysql/... -v $(if$(TESTARGS),-run "$(TESTARGS)",) -timeout=30m;\
127
+
DOCKER_DEFAULT_PLATFORM=linux/amd64 DOCKER_IMAGE=mysql:$* PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 go test -tags=testcontainers ./mysql/... -v $(if$(TESTARGS),-run "$(TESTARGS)",) -timeout=30m;\
128
128
else\
129
-
DOCKER_IMAGE=mysql:$* PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 GOTOOLCHAIN=auto go test -tags=testcontainers ./mysql/... -v $(if$(TESTARGS),-run "$(TESTARGS)",) -timeout=30m;\
129
+
DOCKER_IMAGE=mysql:$* PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 go test -tags=testcontainers ./mysql/... -v $(if$(TESTARGS),-run "$(TESTARGS)",) -timeout=30m;\
130
130
fi
131
131
132
132
testversion: ## Run tests against MySQL version (set MYSQL_VERSION)
133
-
@DOCKER_IMAGE=mysql:$(MYSQL_VERSION) PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 GOTOOLCHAIN=auto go test -tags=testcontainers ./mysql/... -v $(if$(TESTARGS),-run "$(TESTARGS)",) -timeout=30m
133
+
@DOCKER_IMAGE=mysql:$(MYSQL_VERSION) PATH="$(CURDIR)/bin:${PATH}" TF_ACC=1 go test -tags=testcontainers ./mysql/... -v $(if$(TESTARGS),-run "$(TESTARGS)",) -timeout=30m
0 commit comments