From: Stefano Lattarini Date: Wed, 25 Jul 2012 17:06:22 +0000 (+0200) Subject: perf tests: reorganize X-Git-Tag: v1.12.3~31^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42d9439da93eb64ef3bb96e012cf4ab88f7f63ac;p=platform%2Fupstream%2Fautomake.git perf tests: reorganize * t/list-of-tests.mk (handwritten_TESTS): Don't list ($perf_TESTS) in here anymore. * Makefile.am (EXTRA_DIST): Add them explicitly. (perf): New target, run the performance tests and save the logs of the ones with unexpected results in the file 't/perf/test-suite.log', which is thus ... (PERF_TEST_SUITE_LOG): ... defined in this variable ... (CLEANFILES): ... and added to this. (test_subdirs): Remove 't/perf': the tests in there are no more listed in $(TESTS). * t/ax/test-init.sh: Don't explicitly skip "perf" test here. Signed-off-by: Stefano Lattarini --- diff --git a/Makefile.am b/Makefile.am index 5aa543e..a472ff4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -462,7 +462,7 @@ check-local: check-tests-syntax .PHONY: check-tests-syntax ## Checking the list of tests. -test_subdirs = t t/pm t/perf +test_subdirs = t t/pm include $(srcdir)/t/CheckListOfTests.am # Run the testsuite with the installed aclocal and automake. @@ -470,6 +470,15 @@ installcheck-local: installcheck-testsuite installcheck-testsuite: am_running_installcheck=yes $(MAKE) $(AM_MAKEFLAGS) check +# Performance tests. +.PHONY: perf +perf: all + $(MAKE) $(AM_MAKEFLAGS) TEST_SUITE_LOG='$(PERF_TEST_SUITE_LOG)' \ + TESTS='$(perf_TESTS)' check +PERF_TEST_SUITE_LOG = t/perf/test-suite.log +CLEANFILES += $(PERF_TEST_SUITE_LOG) +EXTRA_DIST += $(perf_TESTS) + clean-local: clean-local-check .PHONY: clean-local-check clean-local-check: diff --git a/t/ax/test-init.sh b/t/ax/test-init.sh index e038c5b..a1130e3 100644 --- a/t/ax/test-init.sh +++ b/t/ax/test-init.sh @@ -654,16 +654,6 @@ require_compiler_ () ## required by them. ## ## ----------------------------------------------------------- ## -# Performance tests must be enabled explicitly. -case $argv0 in - */perf/*) - case $AM_TESTSUITE_PERF in - [yY]|[yY]es|1) ;; - *) skip_ "performance tests not explicitly enabled" ;; - esac - ;; -esac - # Look for (and maybe set up) required tools and/or system features; skip # the current test if they are not found. for tool in : $required diff --git a/t/list-of-tests.mk b/t/list-of-tests.mk index 549342d..7746633 100644 --- a/t/list-of-tests.mk +++ b/t/list-of-tests.mk @@ -70,7 +70,6 @@ t/perf/testsuite-summary.sh handwritten_TESTS = \ t/get-sysconf.sh \ $(perl_TESTS) \ -$(perf_TESTS) \ t/instspc.tap \ t/aclocal.sh \ t/aclocal3.sh \