Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit df8fd2d

Browse files
committed
makefile: added docker-integration-test
1 parent 0676186 commit df8fd2d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ else
5858
$(error Unsupported OS $(OS))
5959
endif
6060

61+
.PHONY: docker-integration-test
62+
docker-integration-test: RUN=Integration
63+
docker-integration-test:
64+
@CGO_ENABLED=0 GOOS=linux go test -v -tags integration -c -o ./integration-test.dev $(PKG)
65+
@docker run --name "integration-test" \
66+
--network scylla_go_driver_public \
67+
-v "$(PWD)/testdata:/testdata" \
68+
-v "$(PWD)/integration-test.dev:/usr/bin/integration-test:ro" \
69+
-i --read-only --rm ubuntu integration-test -test.v -test.run $(RUN) $(ARGS)
70+
6171
.PHONY: run-benchtab
6272
run-benchtab: CPUSET=4-5
6373
run-benchtab:

0 commit comments

Comments
 (0)