Skip to content

Commit 56262fb

Browse files
committed
Added ability to run "make test.multi-server" and "make clean.test.multi-server" similarly to how we run our other tests.
1 parent bfe194d commit 56262fb

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/tests/all.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ test: \
5252
test.keywords \
5353
test.xlat \
5454
test.modules \
55+
test.multi-server \
5556
test.process \
5657
test.radiusd-c \
5758
test.radclient \

src/tests/multi-server/all.mk

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,28 @@ VERBOSE_LEVEL_4 := -vvvv
3333
VERBOSE_ARG := $(VERBOSE_LEVEL_$(VERBOSE))
3434

3535
# Default Multi-server tests (1st target of Makefile)
36+
# We purposely do not run all make targets here to run the short
37+
# tests by default.
3638
multi-server: test-5hs-autoaccept test-1p-2hs-autoaccept combine-linelog-msg-output-logs
3739

40+
.PHONY: test.multi-server
41+
test.multi-server: multi-server
42+
3843
# Clean target to remove all .log and .txt.bak files in the runtime logs directory
39-
.PHONY: clean
40-
clean:
44+
.PHONY: clean.test.multi-server
45+
clean.test.multi-server:
4146
@echo "INFO: Removing all .log and .txt.bak files in $(FREERADIUS_MULTI_SERVER_TEST_RUNTIME_LOGS_DIR_ABS)"
4247
rm -f $(FREERADIUS_MULTI_SERVER_TEST_RUNTIME_LOGS_DIR_ABS)/*.log
4348
rm -f $(FREERADIUS_MULTI_SERVER_TEST_RUNTIME_LOGS_DIR_ABS)/*.txt.bak
4449

50+
# Allow standalone use: make -f src/tests/multi-server/all.mk clean
51+
# Prerequisite-only rule merges safely with the top-level clean target
52+
.PHONY: clean
53+
clean: clean.test.multi-server
54+
55+
# Hook into the top-level clean.test when included as a submakefile
56+
clean.test: clean.test.multi-server
57+
4558
# Additional multi-server tests for longer runs
4659
multi-server-5min: test-5hs-autoaccept-5min test-1p-2hs-autoaccept-5min combine-linelog-msg-output-logs
4760

0 commit comments

Comments
 (0)