[beast: 5/17] TESTS: move tests/testresampler into tests/Makefile.sub



commit fd148720e51012ad8989705f29485f7848d2d3cd
Author: Tim Janik <timj gnu org>
Date:   Sun Oct 15 17:48:05 2017 +0200

    TESTS: move tests/testresampler into tests/Makefile.sub
    
    Signed-off-by: Tim Janik <timj gnu org>

 tests/Makefile.am  |   85 ----------------------------------------------
 tests/Makefile.sub |   95 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+), 85 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 0d32b8e..8af67ec 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -23,88 +23,3 @@ generated: clean-generated $(GENERATED)
 # === test programs ===
 noinst_PROGRAMS = $(ALLTESTS)
 progs_ldadd     = ../bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
-
-# testresampler
-noinst_PROGRAMS      += testresampler
-testresampler_SOURCES = testresampler.cc
-testresampler_LDADD   = $(progs_ldadd)
-
-
-# === Resampler tests ===
-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,1979 --max-threshold=45
-       ./testresampler accuracy --down --precision=12 --freq-scan=90,9000,997 --max-threshold=72
-       ./testresampler accuracy --fpu --up --precision=16 --freq-scan=180,18000,1453 --max-threshold=89.5
-       ./testresampler accuracy --fpu --oversample --precision=20 --freq-scan=180,18000,1671 
--max-threshold=113.5
-       ./testresampler accuracy --subsample --precision=24 --freq-scan=90,9000,983 --max-threshold=126
-
-resampler-checks:
-       : ## test SSE filter implementation
-       ./testresampler filter-impl
-       : ## (possibly SSEified) upsampler tests
-       ./testresampler accuracy --up --precision=8 --freq-scan=50,18000,50  --max-threshold=45     # 
ideally: 48dB
-       ./testresampler accuracy --up --precision=12 --freq-scan=50,18000,50 --max-threshold=66.5   # 
ideally: 72dB
-       ./testresampler accuracy --up --precision=16 --freq-scan=50,18000,50 --max-threshold=89     # 
ideally: 96dB
-       ./testresampler accuracy --up --precision=20 --freq-scan=50,18000,50 --max-threshold=113.5  # 
ideally: 120dB
-       ./testresampler accuracy --up --precision=24 --freq-scan=50,18000,50 --max-threshold=126.5  # 
ideally: 144dB
-       : ## (possibly SSEified) downsampler tests
-       ./testresampler accuracy --down --precision=8  --freq-scan=25,9000,25 --max-threshold=51    # 
ideally: 48dB
-       ./testresampler accuracy --down --precision=12 --freq-scan=25,9000,25 --max-threshold=72    # 
ideally: 72dB
-       ./testresampler accuracy --down --precision=16 --freq-scan=25,9000,25 --max-threshold=95    # 
ideally: 96dB
-       ./testresampler accuracy --down --precision=20 --freq-scan=25,9000,25 --max-threshold=119.5 # 
ideally: 120dB
-       ./testresampler accuracy --down --precision=24 --freq-scan=25,9000,25 --max-threshold=131   # 
ideally: 144dB
-       : ## FPU upsampler tests
-       ./testresampler accuracy --fpu --up --precision=8  --freq-scan=50,18000,50 --max-threshold=45     # 
ideally: 48dB
-       ./testresampler accuracy --fpu --up --precision=12 --freq-scan=50,18000,50 --max-threshold=66.5   # 
ideally: 72dB
-       ./testresampler accuracy --fpu --up --precision=16 --freq-scan=50,18000,50 --max-threshold=89     # 
ideally: 96dB
-       ./testresampler accuracy --fpu --up --precision=20 --freq-scan=50,18000,50 --max-threshold=113.5  # 
ideally: 120dB
-       ./testresampler accuracy --fpu --up --precision=24 --freq-scan=50,18000,50 --max-threshold=126    # 
ideally: 144dB
-       : ## FPU downsampler tests
-       ./testresampler accuracy --fpu --down --precision=8  --freq-scan=25,9000,25 --max-threshold=51    # 
ideally: 48dB
-       ./testresampler accuracy --fpu --down --precision=12 --freq-scan=25,9000,25 --max-threshold=72    # 
ideally: 72dB
-       ./testresampler accuracy --fpu --down --precision=16 --freq-scan=25,9000,25 --max-threshold=95    # 
ideally: 96dB
-       ./testresampler accuracy --fpu --down --precision=20 --freq-scan=25,9000,25 --max-threshold=119.5 # 
ideally: 120dB
-       ./testresampler accuracy --fpu --down --precision=24 --freq-scan=25,9000,25 --max-threshold=131   # 
ideally: 144dB
-       : ## sparse testing of sub- and oversampling (we don't test every combination of
-       : ## flags here, but this is also an uncommon usage scenario)
-       ./testresampler accuracy       --oversample --precision=8  --freq-scan=50,18000,50 --max-threshold=45 
  # ideally: 48dB
-       ./testresampler accuracy       --oversample --precision=16 --freq-scan=50,18000,50 --max-threshold=89 
  # ideally: 96dB
-       ./testresampler accuracy --fpu --oversample --precision=16 --freq-scan=50,18000,50 --max-threshold=89 
  # ideally: 96dB
-       ./testresampler accuracy       --subsample  --precision=16 --freq-scan=25,9000,25  
--max-threshold=85.5 # ideally: 96dB
-       ./testresampler accuracy --fpu --subsample  --precision=16 --freq-scan=25,9000,25  
--max-threshold=85.5 # ideally: 96dB
-
-resampler-perf:
-       ./testresampler perf --fpu --precision=8  --up
-       ./testresampler perf --fpu --precision=8  --down
-       ./testresampler perf --fpu --precision=8  --subsample
-       ./testresampler perf --fpu --precision=8  --oversample
-       ./testresampler perf       --precision=8  --up
-       ./testresampler perf       --precision=8  --down
-       ./testresampler perf       --precision=8  --subsample
-       ./testresampler perf       --precision=8  --oversample
-       ./testresampler perf --fpu --precision=16 --up
-       ./testresampler perf --fpu --precision=16 --down
-       ./testresampler perf --fpu --precision=16 --subsample
-       ./testresampler perf --fpu --precision=16 --oversample
-       ./testresampler perf       --precision=16 --up
-       ./testresampler perf       --precision=16 --down
-       ./testresampler perf       --precision=16 --subsample
-       ./testresampler perf       --precision=16 --oversample
-       ./testresampler perf --fpu --precision=20 --up
-       ./testresampler perf --fpu --precision=20 --down
-       ./testresampler perf --fpu --precision=20 --subsample
-       ./testresampler perf --fpu --precision=20 --oversample
-       ./testresampler perf       --precision=20 --up
-       ./testresampler perf       --precision=20 --down
-       ./testresampler perf       --precision=20 --subsample
-       ./testresampler perf       --precision=20 --oversample
-       ./testresampler perf --fpu --precision=24 --up
-       ./testresampler perf --fpu --precision=24 --down
-       ./testresampler perf --fpu --precision=24 --subsample
-       ./testresampler perf --fpu --precision=24 --oversample
-       ./testresampler perf       --precision=24 --up
-       ./testresampler perf       --precision=24 --down
-       ./testresampler perf       --precision=24 --subsample
-       ./testresampler perf       --precision=24 --oversample
diff --git a/tests/Makefile.sub b/tests/Makefile.sub
index 554867a..35b8256 100644
--- a/tests/Makefile.sub
+++ b/tests/Makefile.sub
@@ -50,3 +50,98 @@ tests_testresamplerq_CXXFLAGS = $(SFI_CPPFLAGS) $(RAPICORN_CFLAGS)
 tests_testresamplerq_LDADD    = bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
 tests_testresamplerq_SOURCES  = \
        tests/testresamplerq.cc
+
+# == testresampler ==
+#NOINST_TESTS                += tests/testresampler
+noinst_PROGRAMS             += tests/testresampler
+tests_testresampler_CXXFLAGS = $(SFI_CPPFLAGS) $(RAPICORN_CFLAGS)
+tests_testresampler_LDADD    = bse/libbse-@MAJOR@.la $(LIBBSE_LIBS)
+tests_testresampler_SOURCES = \
+       tests/testresampler.cc
+tests-testresampler-check-filter-impl:
+       $(QTEST)
+       $(Q) tests/testresampler filter-impl
+tests-testresampler-check-precision8:
+       $(QTEST)
+       $(Q) tests/testresampler accuracy --up --precision=8 --freq-scan=180,18000,1979 --max-threshold=45
+tests-testresampler-check-precision12:
+       $(QTEST)
+       $(Q) tests/testresampler accuracy --down --precision=12 --freq-scan=90,9000,997 --max-threshold=72
+tests-testresampler-check-precision16:
+       $(QTEST)
+       $(Q) tests/testresampler accuracy --fpu --up --precision=16 --freq-scan=180,18000,1453 
--max-threshold=89.5
+tests-testresampler-check-precision20:
+       $(QTEST)
+       $(Q) tests/testresampler accuracy --fpu --oversample --precision=20 --freq-scan=180,18000,1671 
--max-threshold=113.5
+tests-testresampler-check-precision24:
+       $(QTEST)
+       $(Q) tests/testresampler accuracy --subsample --precision=24 --freq-scan=90,9000,983 
--max-threshold=126
+check-tests: tests-testresampler-check-filter-impl tests-testresampler-check-precision8 
tests-testresampler-check-precision12
+check-tests: tests-testresampler-check-precision16 tests-testresampler-check-precision20 
tests-testresampler-check-precision24
+tests-testresampler-check-all:
+       : ## test SSE filter implementation
+       tests/testresampler filter-impl
+       : ## (possibly SSEified) upsampler tests
+       tests/testresampler accuracy --up --precision=8 --freq-scan=50,18000,50  --max-threshold=45     # 
ideally: 48dB
+       tests/testresampler accuracy --up --precision=12 --freq-scan=50,18000,50 --max-threshold=66.5   # 
ideally: 72dB
+       tests/testresampler accuracy --up --precision=16 --freq-scan=50,18000,50 --max-threshold=89     # 
ideally: 96dB
+       tests/testresampler accuracy --up --precision=20 --freq-scan=50,18000,50 --max-threshold=113.5  # 
ideally: 120dB
+       tests/testresampler accuracy --up --precision=24 --freq-scan=50,18000,50 --max-threshold=126.5  # 
ideally: 144dB
+       : ## (possibly SSEified) downsampler tests
+       tests/testresampler accuracy --down --precision=8  --freq-scan=25,9000,25 --max-threshold=51    # 
ideally: 48dB
+       tests/testresampler accuracy --down --precision=12 --freq-scan=25,9000,25 --max-threshold=72    # 
ideally: 72dB
+       tests/testresampler accuracy --down --precision=16 --freq-scan=25,9000,25 --max-threshold=95    # 
ideally: 96dB
+       tests/testresampler accuracy --down --precision=20 --freq-scan=25,9000,25 --max-threshold=119.5 # 
ideally: 120dB
+       tests/testresampler accuracy --down --precision=24 --freq-scan=25,9000,25 --max-threshold=131   # 
ideally: 144dB
+       : ## FPU upsampler tests
+       tests/testresampler accuracy --fpu --up --precision=8  --freq-scan=50,18000,50 --max-threshold=45     
# ideally: 48dB
+       tests/testresampler accuracy --fpu --up --precision=12 --freq-scan=50,18000,50 --max-threshold=66.5   
# ideally: 72dB
+       tests/testresampler accuracy --fpu --up --precision=16 --freq-scan=50,18000,50 --max-threshold=89     
# ideally: 96dB
+       tests/testresampler accuracy --fpu --up --precision=20 --freq-scan=50,18000,50 --max-threshold=113.5  
# ideally: 120dB
+       tests/testresampler accuracy --fpu --up --precision=24 --freq-scan=50,18000,50 --max-threshold=126    
# ideally: 144dB
+       : ## FPU downsampler tests
+       tests/testresampler accuracy --fpu --down --precision=8  --freq-scan=25,9000,25 --max-threshold=51    
# ideally: 48dB
+       tests/testresampler accuracy --fpu --down --precision=12 --freq-scan=25,9000,25 --max-threshold=72    
# ideally: 72dB
+       tests/testresampler accuracy --fpu --down --precision=16 --freq-scan=25,9000,25 --max-threshold=95    
# ideally: 96dB
+       tests/testresampler accuracy --fpu --down --precision=20 --freq-scan=25,9000,25 --max-threshold=119.5 
# ideally: 120dB
+       tests/testresampler accuracy --fpu --down --precision=24 --freq-scan=25,9000,25 --max-threshold=131   
# ideally: 144dB
+       : ## sparse testing of sub- and oversampling (we don't test every combination of
+       : ## flags here, but this is also an uncommon usage scenario)
+       tests/testresampler accuracy       --oversample --precision=8  --freq-scan=50,18000,50 
--max-threshold=45   # ideally: 48dB
+       tests/testresampler accuracy       --oversample --precision=16 --freq-scan=50,18000,50 
--max-threshold=89   # ideally: 96dB
+       tests/testresampler accuracy --fpu --oversample --precision=16 --freq-scan=50,18000,50 
--max-threshold=89   # ideally: 96dB
+       tests/testresampler accuracy       --subsample  --precision=16 --freq-scan=25,9000,25  
--max-threshold=85.5 # ideally: 96dB
+       tests/testresampler accuracy --fpu --subsample  --precision=16 --freq-scan=25,9000,25  
--max-threshold=85.5 # ideally: 96dB
+tests-testresampler-check-perf:
+       tests/testresampler perf --fpu --precision=8  --up
+       tests/testresampler perf --fpu --precision=8  --down
+       tests/testresampler perf --fpu --precision=8  --subsample
+       tests/testresampler perf --fpu --precision=8  --oversample
+       tests/testresampler perf       --precision=8  --up
+       tests/testresampler perf       --precision=8  --down
+       tests/testresampler perf       --precision=8  --subsample
+       tests/testresampler perf       --precision=8  --oversample
+       tests/testresampler perf --fpu --precision=16 --up
+       tests/testresampler perf --fpu --precision=16 --down
+       tests/testresampler perf --fpu --precision=16 --subsample
+       tests/testresampler perf --fpu --precision=16 --oversample
+       tests/testresampler perf       --precision=16 --up
+       tests/testresampler perf       --precision=16 --down
+       tests/testresampler perf       --precision=16 --subsample
+       tests/testresampler perf       --precision=16 --oversample
+       tests/testresampler perf --fpu --precision=20 --up
+       tests/testresampler perf --fpu --precision=20 --down
+       tests/testresampler perf --fpu --precision=20 --subsample
+       tests/testresampler perf --fpu --precision=20 --oversample
+       tests/testresampler perf       --precision=20 --up
+       tests/testresampler perf       --precision=20 --down
+       tests/testresampler perf       --precision=20 --subsample
+       tests/testresampler perf       --precision=20 --oversample
+       tests/testresampler perf --fpu --precision=24 --up
+       tests/testresampler perf --fpu --precision=24 --down
+       tests/testresampler perf --fpu --precision=24 --subsample
+       tests/testresampler perf --fpu --precision=24 --oversample
+       tests/testresampler perf       --precision=24 --up
+       tests/testresampler perf       --precision=24 --down
+       tests/testresampler perf       --precision=24 --subsample
+       tests/testresampler perf       --precision=24 --oversample


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