diff options
| -rw-r--r-- | test/Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index ee11a0b7a30..545a0e110fb 100644 --- a/test/Makefile.in +++ b/test/Makefile.in | |||
| @@ -112,10 +112,14 @@ TESTS = $(subst ${srcdir}/,,$(LOGFILES:.log=)) | |||
| 112 | .PHONY: ${TESTS} | 112 | .PHONY: ${TESTS} |
| 113 | 113 | ||
| 114 | ## The short aliases that always re-run the tests, with no logging. | 114 | ## The short aliases that always re-run the tests, with no logging. |
| 115 | ## Define an alias both with and without the directory name for ease | ||
| 116 | ## of use. | ||
| 115 | define test_template | 117 | define test_template |
| 116 | $(1): | 118 | $(1): |
| 117 | @test ! -f ${srcdir}/$(1).log || mv ${srcdir}/$(1).log ${srcdir}/$(1).log~ | 119 | @test ! -f ${srcdir}/$(1).log || mv ${srcdir}/$(1).log ${srcdir}/$(1).log~ |
| 118 | @${MAKE} ${srcdir}/$(1).log WRITE_LOG= | 120 | @${MAKE} ${srcdir}/$(1).log WRITE_LOG= |
| 121 | |||
| 122 | $(notdir $(1)): $(1) | ||
| 119 | endef | 123 | endef |
| 120 | 124 | ||
| 121 | $(foreach test,${TESTS},$(eval $(call test_template,${test}))) | 125 | $(foreach test,${TESTS},$(eval $(call test_template,${test}))) |