Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2023-05-15 20:59:29 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2023-05-16 14:34:35 +0300
commitf553046927a15ebbb21671d08ee973e92cd2e7f3 (patch)
treee8fd756557782405a509568c58fe419a0a6492d9
parent4702511ffb7ab317b8fdfed7ece570777996526f (diff)
Add makefile targets for testing with WAL
This commit adds 'test-wal' and 'test-with-praefect-wal' targets to the makefile for running tests with the WAL enabled.
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb8e54140..10cb3a293 100644
--- a/Makefile
+++ b/Makefile
@@ -400,6 +400,16 @@ bench: ${BENCHMARK_REPO} prepare-tests
test-with-praefect: prepare-tests
${Q}GITALY_TEST_WITH_PRAEFECT=YesPlease $(call run_go_tests)
+.PHONY: test-wal
+## Run Go tests with write-ahead logging enabled.
+test-wal: export GITALY_TEST_WAL = YesPlease
+test-wal: test
+
+.PHONY: test-with-praefect-wal
+## Run Go tests with write-ahead logging and Praefect enabled.
+test-with-praefect-wal: export GITALY_TEST_WAL = YesPlease
+test-with-praefect-wal: test-with-praefect
+
.PHONY: race-go
## Run Go tests with race detection enabled.
race-go: override TEST_OPTIONS := ${TEST_OPTIONS} -race