Skip to content

Commit 4b6e009

Browse files
committed
Test-related changes in Makefile
1 parent fe27603 commit 4b6e009

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

opt/Makefile

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ make clean # remove build artifacts
1414
make test # run tests
1515
make pack # create installation packages
1616
PACK_DEPS=0 # do not pack dependencies
17+
INTO=dir # place artifacts in `dir`
18+
BRANCH=name # use `name` as branch name
1719
make deploy # copy packages to S3
1820
make release # release a version
1921

@@ -123,9 +125,9 @@ fetch deps:
123125

124126
pack:
125127
ifneq ($(PACK_DEPS),0)
126-
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(BINROOT) INSTALL_DIR=$(INSTALL_DIR) DEPS=1 ./pack.sh
128+
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(BINROOT) INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) INTO=$(INTO) DEPS=1 ./pack.sh
127129
else
128-
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(BINROOT) INSTALL_DIR=$(INSTALL_DIR) DEPS=0 ./pack.sh
130+
$(SHOW)DEVICE=$(DEVICE) BINDIR=$(BINROOT) INSTALL_DIR=$(INSTALL_DIR) BRANCH=$(BRANCH) INTO=$(INTO) DEPS=0 ./pack.sh
129131
endif
130132

131133
#----------------------------------------------------------------------------------------------
@@ -143,10 +145,14 @@ ifneq ($(NO_LFS),1)
143145
endif
144146
$(SHOW)set -e ;\
145147
cd $(ROOT)/test ;\
146-
export DEVICE=$(DEVICE) ;\
147-
python3 -m RLTest $(TEST_ARGS) --test $(TEST) --module $(INSTALL_DIR)/redisai.so ;\
148+
DEVICE=$(DEVICE) ;\
149+
{ \
150+
python3 -m RLTest $(TEST_ARGS) --test $(TEST) --module $(INSTALL_DIR)/redisai.so
151+
printf "\nTests with --use-slaved:\n\n" ;\
148152
python3 -m RLTest $(TEST_ARGS) --test $(TEST) --module $(INSTALL_DIR)/redisai.so --use-slaves ;\
149-
python3 -m RLTest $(TEST_ARGS) --test $(TEST) --module $(INSTALL_DIR)/redisai.so --use-aof
153+
printf "\nTests with --use-aof:\n\n" ;\
154+
python3 -m RLTest $(TEST_ARGS) --test $(TEST) --module $(INSTALL_DIR)/redisai.so --use-aof ;\
155+
}
150156
# Commented until the MacOS CI is available
151157
# python3 -m RLTest $(TEST_ARGS) --test double-panda.py --module $(INSTALL_DIR)/redisai.so
152158

0 commit comments

Comments
 (0)