Skip to content

Commit 64247f5

Browse files
committed
Enable debug command on Redis 7.0
1 parent 86f004f commit 64247f5

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Gemfile.lock
1616
/test/db
1717
/test/test.conf
1818
appendonly.aof
19+
appendonlydir
1920
temp-rewriteaof-*.aof
2021
.history
2122

makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
REDIS_BRANCH ?= 6.2
1+
REDIS_BRANCH ?= 7.0
2+
ROOT_DIR :=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
23
TMP := tmp
4+
CONF := ${ROOT_DIR}/test/support/conf/redis-${REDIS_BRANCH}.conf
35
BUILD_DIR := ${TMP}/cache/redis-${REDIS_BRANCH}
46
TARBALL := ${TMP}/redis-${REDIS_BRANCH}.tar.gz
57
BINARY := ${BUILD_DIR}/src/redis-server
@@ -32,17 +34,20 @@ stop_all: stop_sentinel stop_slave stop stop_cluster
3234
${TMP}:
3335
@mkdir -p $@
3436

37+
${CONF}:
38+
@touch $@
39+
3540
${BINARY}: ${TMP}
3641
@bin/build ${REDIS_BRANCH} $<
3742

3843
test:
3944
@env SOCKET_PATH=${SOCKET_PATH} bundle exec rake test
4045

4146
stop:
42-
@$(call kill-redis,${PID_PATH})
47+
@$(call kill-redis,${PID_PATH});\
4348

4449
start: ${BINARY}
45-
@${BINARY}\
50+
@${BINARY} ${CONF} \
4651
--daemonize yes\
4752
--pidfile ${PID_PATH}\
4853
--port ${PORT}\

test/support/conf/redis-5.0.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
slaveof no one
2+
appendonly no
3+
save ""

test/support/conf/redis-6.0.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
slaveof no one
2+
appendonly no
3+
save ""

test/support/conf/redis-6.2.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
slaveof no one
2+
appendonly no
3+
save ""

test/support/conf/redis-7.0.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
slaveof no one
2+
appendonly no
3+
save ""
4+
enable-debug-command yes

0 commit comments

Comments
 (0)