Skip to content

Commit

Permalink
Makefile: add test-real-cluster command to the root Makefile (#7567)
Browse files Browse the repository at this point in the history
ref #7298

Add `test-real-cluster` command to the root Makefile.

Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato authored Dec 19, 2023
1 parent cfb1d8f commit 0a332a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,13 @@ test-tso-consistency: install-tools
CGO_ENABLED=1 go test -race -tags without_dashboard,tso_consistency_test,deadlock $(TSO_INTEGRATION_TEST_PKGS) || { $(FAILPOINT_DISABLE); exit 1; }
@$(FAILPOINT_DISABLE)

.PHONY: test basic-test test-with-cover test-tso-function test-tso-consistency
REAL_CLUSTER_TEST_PATH := $(ROOT_PATH)/tests/integrations/realtiup

test-real-cluster:
# testing with the real cluster...
cd $(REAL_CLUSTER_TEST_PATH) && $(MAKE) check

.PHONY: test basic-test test-with-cover test-tso-function test-tso-consistency test-real-cluster

#### Daily CI coverage analyze ####

Expand Down Expand Up @@ -297,6 +303,7 @@ clean-test:
rm -rf /tmp/test_pd*
rm -rf /tmp/pd-tests*
rm -rf /tmp/test_etcd*
rm -f $(REAL_CLUSTER_TEST_PATH)/playground.log
go clean -testcache

clean-build:
Expand Down
4 changes: 4 additions & 0 deletions pd.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"name": "tso-tests",
"path": "tests/integrations/tso"
},
{
"name": "real-cluster-tests",
"path": "tests/integrations/realtiup"
},
{
"name": "pd-tso-bench",
"path": "tools/pd-tso-bench"
Expand Down

0 comments on commit 0a332a9

Please sign in to comment.