r3924 - in trunk: . slowtests



Author: stw
Date: 2006-10-02 12:14:37 -0400 (Mon, 02 Oct 2006)
New Revision: 3924

Modified:
   trunk/ChangeLog
   trunk/slowtests/Makefile.am
   trunk/slowtests/testresampler.cc
Log:
Mon Oct  2 18:10:38 2006  Stefan Westerfeld  <stefan space twc de>

	* slowtests/testresampler.cc: Fix small bug: only show accuracy
	threshold when the option was actually specified by the user.

	* slowtests/Makefile.am: Moved the resampler test to make slowcheck,
	and only do a bit of testing during make check. Speedup of the
	resampler tests in make check (on AMD64): approximately factor 15.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-10-01 11:34:30 UTC (rev 3923)
+++ trunk/ChangeLog	2006-10-02 16:14:37 UTC (rev 3924)
@@ -1,3 +1,12 @@
+Mon Oct  2 18:10:38 2006  Stefan Westerfeld  <stefan space twc de>
+
+	* slowtests/testresampler.cc: Fix small bug: only show accuracy
+	threshold when the option was actually specified by the user.
+
+	* slowtests/Makefile.am: Moved the resampler test to make slowcheck,
+	and only do a bit of testing during make check. Speedup of the
+	resampler tests in make check (on AMD64): approximately factor 15.
+
 Thu Sep 28 19:52:02 2006  Tim Janik  <timj gtk org>
 
 	* Makefile.decl: added recursive slowcheck: rule, intended for checks

Modified: trunk/slowtests/Makefile.am
===================================================================
--- trunk/slowtests/Makefile.am	2006-10-01 11:34:30 UTC (rev 3923)
+++ trunk/slowtests/Makefile.am	2006-10-02 16:14:37 UTC (rev 3924)
@@ -56,7 +56,17 @@
 noinst_PROGRAMS += testresampler
 testresampler_SOURCES = testresampler.cc
 testresampler_LDADD = $(progs_ldadd)
-check-before: resampler-checks
+check-before: resampler-quick-checks
+slowcheck: resampler-checks
+resampler-quick-checks:
+	: ## some quick checks (resampler-checks contains actual tests - use make slowcheck)
+	./testresampler filter-impl
+	./testresampler accuracy --up --precision=8 --freq-scan=180,18000,180 --max-threshold=45
+	./testresampler accuracy --down --precision=12 --freq-scan=90,9000,90 --max-threshold=72
+	./testresampler accuracy --fpu --up --precision=16 --freq-scan=180,18000,180 --max-threshold=89.5
+	./testresampler accuracy --fpu --oversample --precision=20 --freq-scan=180,18000,180 --max-threshold=113.5
+	./testresampler accuracy --subsample --precision=24 --freq-scan=90,9000,90 --max-threshold=126
+
 resampler-checks:
 	: ## test SSE filter implementation
 	./testresampler filter-impl

Modified: trunk/slowtests/testresampler.cc
===================================================================
--- trunk/slowtests/testresampler.cc	2006-10-01 11:34:30 UTC (rev 3923)
+++ trunk/slowtests/testresampler.cc	2006-10-02 16:14:37 UTC (rev 3924)
@@ -491,7 +491,7 @@
       if (TEST == TEST_ACCURACY)
 	{
 	  printf ("#   max difference between correct and computed output: %f = %f dB\n", max_diff, max_diff_db);
-	  if (max_diff_db < 0)
+	  if (options.max_threshold_db < 0)
 	    printf ("#                             (threshold given by user: %f dB)\n", options.max_threshold_db);
 	  g_assert (max_diff_db < options.max_threshold_db);
 	}




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