From f4240cc8a4545e4d2e2f926a72aa911d5373ab95 Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Thu, 15 Sep 2016 02:00:29 -0600 Subject: Add optional SEED=n command line option to Makefile, and -S n command line option to test scripts, for deterministic regression tests. --- tests/tools/autotest.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/tools') diff --git a/tests/tools/autotest.mk b/tests/tools/autotest.mk index f65002cef..c68678929 100644 --- a/tests/tools/autotest.mk +++ b/tests/tools/autotest.mk @@ -1,8 +1,13 @@ EXTRA_FLAGS= +SEED= + +ifneq ($(strip $(SEED)),) +SEEDOPT=-S$(SEED) +endif $(MAKECMDGOALS): - @$(basename $(MAKEFILE_LIST)).sh -G -j $(EXTRA_FLAGS) $@ + @$(basename $(MAKEFILE_LIST)).sh -G -j $(SEEDOPT) $(EXTRA_FLAGS) $@ .PHONY: $(MAKECMDGOALS) -- cgit v1.2.3