--- old/test/make/TestMakeBase.gmk 2015-03-11 15:41:39.223212244 +0100 +++ new/test/make/TestMakeBase.gmk 2015-03-11 15:41:39.119207894 +0100 @@ -182,5 +182,23 @@ TEST_TARGETS += test-vardep ################################################################################ +# Test sequence + +ifneq ($(call sequence, 1, 1), 1) + $(error Sequence 1, 1 should be "1", but was $(call sequence, 1, 1)) +endif + +ifneq ($(call sequence, 2, 3), 2 3) + $(error Sequence 2, 3 should be "2 3", but was $(call sequence, 2, 3)) +endif + +ifneq ($(call sequence, 4, 9), 4 5 6 7 8 9) + $(error Sequence 4, 9 should be "4 5 6 7 8 9", but was $(call sequence, 4, 9)) +endif + +ifneq ($(call sequence, 5, 15), 5 6 7 8 9 10 11 12 13 14 15) + $(error Sequence 5, 15 should be "5 6 7 8 9 10 11 12 13 14 15", \ + but was $(call sequence, 5, 15)) +endif all: $(TEST_TARGETS)