r3995 - in trunk: . bse/tests sfi/tests tests tests/bse



Author: timj
Date: 2006-10-20 22:04:04 -0400 (Fri, 20 Oct 2006)
New Revision: 3995

Modified:
   trunk/ChangeLog
   trunk/Makefile.decl
   trunk/bse/tests/Makefile.am
   trunk/sfi/tests/Makefile.am
   trunk/tests/Makefile.am
   trunk/tests/bse/Makefile.am
Log:
Sat Oct 21 04:01:11 2006  Tim Janik  <timj gtk org>

        * Makefile.decl: preinitialize TESTS, auto-check SLOWTESTS and
        PERFTESTS in slowcheck and perf rules. added report rule to
        run all of check, slowcheck and perf and log into report.out.




Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-10-21 02:03:19 UTC (rev 3994)
+++ trunk/ChangeLog	2006-10-21 02:04:04 UTC (rev 3995)
@@ -1,3 +1,9 @@
+Sat Oct 21 04:01:11 2006  Tim Janik  <timj gtk org>
+
+	* Makefile.decl: preinitialize TESTS, auto-check SLOWTESTS and
+	PERFTESTS in slowcheck and perf rules. added report rule to
+	run all of check, slowcheck and perf and log into report.out.
+
 Fri Oct 20 23:03:36 2006  Stefan Westerfeld  <stefan space twc de>
 
 	* tests/bse/filtertest.cc: More refactoring.

Modified: trunk/Makefile.decl
===================================================================
--- trunk/Makefile.decl	2006-10-21 02:03:19 UTC (rev 3994)
+++ trunk/Makefile.decl	2006-10-21 02:04:04 UTC (rev 3995)
@@ -36,30 +36,61 @@
 	    echo "$(subdir)/$$file" >> $(DISTFILE_LIST) ;	\
 	done ; true
 
+# === check: check-before / check-after ===
+.PHONY: check-before check-after
+check-am: check-before
+check-local: check-after
+check-local: ; @:
+TESTS=
+
 # === slowcheck ===
 # recursive rule supported by all Makefiles to run time consuming checks
-.PHONY: slowcheck slowcheck-recursive
-slowcheck: slowcheck-recursive
+.PHONY: slowcheck slowcheck-recursive slowcheck-SLOWTESTS
+slowcheck: slowcheck-recursive slowcheck-SLOWTESTS
 slowcheck-recursive:
 	@for subdir in $(SUBDIRS) ; do				\
 	  test "$$subdir" = '.' ||				\
 	    $(MAKE) -C "$$subdir" $(AM_MAKEFLAGS) slowcheck ||	\
 	    exit 1 ;						\
 	done
+slowcheck-SLOWTESTS:
+	@for tst in $(SLOWTESTS) ; do \
+	  ./$$tst --test-slow && echo "PASS: $$tst" || exit 1 ;		\
+	done
+	@MESSAGETEXT="All $(words $(SLOWTESTS)) slow tests passed"	\
+	&& [ 0 -lt $(words $(SLOWTESTS)) ]				\
+	&& echo $$MESSAGETEXT | sed 's/./=/g' && echo $$MESSAGETEXT	\
+	&& echo $$MESSAGETEXT | sed 's/./=/g' || true
+SLOWTESTS=
 
-# === check-before / check-after ===
-.PHONY: check-before check-after
-check-am: check-before
-check-local: check-after
-check-local: ; @:
-
 # === perf ===
 # recursive rule supported by all Makefiles to run performance tests
-.PHONY: perf perf-recursive
-perf: perf-recursive
+.PHONY: perf perf-recursive perf-PERFTESTS
+perf: perf-recursive perf-PERFTESTS
 perf-recursive:
 	@for subdir in $(SUBDIRS) ; do				\
 	  test "$$subdir" = '.' ||				\
 	    $(MAKE) -C "$$subdir" $(AM_MAKEFLAGS) perf ||	\
 	    exit 1 ;						\
 	done
+perf-PERFTESTS:
+	@for tst in $(PERFTESTS) ; do \
+	  ./$$tst --test-perf && echo "PASS: $$tst" || exit 1 ;		\
+	done
+	@MESSAGETEXT="All $(words $(PERFTESTS)) perf tests passed"	\
+	&& [ 0 -lt $(words $(PERFTESTS)) ]				\
+	&& echo $$MESSAGETEXT | sed 's/./=/g' && echo $$MESSAGETEXT	\
+	&& echo $$MESSAGETEXT | sed 's/./=/g' || true
+PERFTESTS=
+
+# === report ===
+.PHONY: report
+report: all
+	@export REPORTFILE="$(REPORTFILE)"			\
+	&& [ -z "$$REPORTFILE" ]				\
+	&& export REPORTFILE="$(shell pwd)/report.out" ;	\
+	( true 							\
+	  && echo -n "#TREPSTART: " && date --iso-8601=seconds	\
+	  && $(MAKE) $(AM_MAKEFLAGS) check slowcheck perf	\
+	  && echo -n "#TREPDONE: "  && date --iso-8601=seconds	\
+	) 2>&1 | tee "$$REPORTFILE"

Modified: trunk/bse/tests/Makefile.am
===================================================================
--- trunk/bse/tests/Makefile.am	2006-10-21 02:03:19 UTC (rev 3994)
+++ trunk/bse/tests/Makefile.am	2006-10-21 02:04:04 UTC (rev 3995)
@@ -12,20 +12,30 @@
 
 EXTRA_DIST += arrows.gp filter-defs.gp
 
-TESTS = testfft loophandle testcxx subnormals blocktests resamplehandle
 noinst_PROGRAMS = $(TESTS)
 progs_ldadd = $(top_builddir)/bse/libbse.la
+
+TESTS          += testfft
 testfft_SOURCES = testfft.c cxxdummy.cc
-testfft_LDADD = $(progs_ldadd)
+testfft_LDADD   = $(progs_ldadd)
+
+TESTS          += testcxx
 testcxx_SOURCES = testcxx.cc
-testcxx_LDADD = $(progs_ldadd)
-subnormals_SOURCES = subnormals.cc subnormals-aux.cc
-subnormals_LDADD = $(progs_ldadd)
+testcxx_LDADD   = $(progs_ldadd)
+
+TESTS              += subnormals 
+subnormals_SOURCES  = subnormals.cc subnormals-aux.cc
+subnormals_LDADD    = $(progs_ldadd)
 subnormals_CXXFLAGS = $(AM_CXXFLAGS) -ffast-math
+
+TESTS             += loophandle
 loophandle_SOURCES = loophandle.c
-loophandle_LDADD = $(progs_ldadd)
+loophandle_LDADD   = $(progs_ldadd)
+
+TESTS             += blocktests
 blocktests_SOURCES = blocktests.cc
-blocktests_LDADD = $(progs_ldadd)
+blocktests_LDADD   = $(progs_ldadd)
+
+TESTS                 += resamplehandle
 resamplehandle_SOURCES = resamplehandle.cc
-resamplehandle_LDADD = $(progs_ldadd)
- 
+resamplehandle_LDADD   = $(progs_ldadd)

Modified: trunk/sfi/tests/Makefile.am
===================================================================
--- trunk/sfi/tests/Makefile.am	2006-10-21 02:03:19 UTC (rev 3994)
+++ trunk/sfi/tests/Makefile.am	2006-10-21 02:04:04 UTC (rev 3995)
@@ -7,7 +7,6 @@
 INCLUDES       += -I$(top_srcdir) -I$(top_builddir) -I. $(SFI_CFLAGS)
 DEFS	       += -DG_LOG_DOMAIN='"$(basename $(@F))"' -DPARANOID # -DG_DISABLE_CONST_RETURNS
 
-TESTS 		  =
 noinst_PROGRAMS   = $(TESTS)
 progs_nosfi_ldadd = $(top_builddir)/birnet/libbirnet.o $(SFI_LIBS) -lm
 progs_ldadd 	  = $(top_builddir)/birnet/libbirnet.o $(top_builddir)/sfi/libsfi.o $(SFI_LIBS) -lm

Modified: trunk/tests/Makefile.am
===================================================================
--- trunk/tests/Makefile.am	2006-10-21 02:03:19 UTC (rev 3994)
+++ trunk/tests/Makefile.am	2006-10-21 02:04:04 UTC (rev 3995)
@@ -69,7 +69,6 @@
 
 
 # === test programs ===
-TESTS           =
 noinst_PROGRAMS = $(TESTS)
 progs_ldadd     = $(top_builddir)/bse/libbse.la
 # testwavechunk

Modified: trunk/tests/bse/Makefile.am
===================================================================
--- trunk/tests/bse/Makefile.am	2006-10-21 02:03:19 UTC (rev 3994)
+++ trunk/tests/bse/Makefile.am	2006-10-21 02:04:04 UTC (rev 3995)
@@ -49,11 +49,12 @@
 #
 # test programs
 #
-TESTS = cxxbinding filtertest
 noinst_PROGRAMS = $(TESTS)
 progs_ldadd = $(top_builddir)/bse/libbse.la
+TESTS             += cxxbinding
 cxxbinding_SOURCES = cxxbinding.cc bsecxxapi.cc
 cxxbinding_LDADD = $(progs_ldadd)
+TESTS             += filtertest
 filtertest_SOURCES = filtertest.cc
 filtertest_LDADD = $(progs_ldadd)
 EXTRA_DIST += empty.ogg




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]