tests/: move file around to match src/
authorPaul Brossier <piem@piem.org>
Tue, 10 Jul 2012 22:26:12 +0000 (15:26 -0700)
committerPaul Brossier <piem@piem.org>
Tue, 10 Jul 2012 22:26:12 +0000 (15:26 -0700)
26 files changed:
tests/python/src/onset/peakpicker.py [moved from tests/python/src/onset/peakpick.py with 100% similarity]
tests/src/Makefile.am
tests/src/onset/test-onset.c [moved from tests/src/test-onset.c with 100% similarity]
tests/src/onset/test-peakpicker.c [moved from tests/src/test-peakpick.c with 100% similarity]
tests/src/pitch/test-pitch.c [moved from tests/src/test-pitchdetection.c with 100% similarity]
tests/src/pitch/test-pitchfcomb.c [moved from tests/src/test-pitchfcomb.c with 100% similarity]
tests/src/pitch/test-pitchmcomb.c [moved from tests/src/test-pitchmcomb.c with 100% similarity]
tests/src/pitch/test-pitchschmitt.c [moved from tests/src/test-pitchschmitt.c with 100% similarity]
tests/src/pitch/test-pitchyin.c [moved from tests/src/test-pitchyin.c with 100% similarity]
tests/src/pitch/test-pitchyinfft.c [moved from tests/src/test-pitchyinfft.c with 100% similarity]
tests/src/spectral/test-filterbank.c [moved from tests/src/test-filterbank.c with 100% similarity]
tests/src/spectral/test-filterbank_mel.c [moved from tests/src/test-filterbank_mel.c with 100% similarity]
tests/src/spectral/test-mfcc.c [moved from tests/src/test-mfcc.c with 100% similarity]
tests/src/spectral/test-phasevoc-jack.c [moved from tests/src/test-phasevoc-jack.c with 100% similarity]
tests/src/spectral/test-phasevoc.c [moved from tests/src/test-phasevoc.c with 100% similarity]
tests/src/spectral/test-specdesc.c [moved from tests/src/test-onsetdetection.c with 100% similarity]
tests/src/spectral/test-tss.c [moved from tests/src/test-tss.c with 100% similarity]
tests/src/temporal/test-a_weighting.c [moved from tests/src/temporal/test-aweighting.c with 100% similarity]
tests/src/temporal/test-biquad.c [moved from tests/src/test-biquad.c with 100% similarity]
tests/src/temporal/test-c_weighting.c [moved from tests/src/temporal/test-cweighting.c with 100% similarity]
tests/src/temporal/test-filter.c [moved from tests/src/test-filter.c with 100% similarity]
tests/src/temporal/test-resampler.c [moved from tests/src/test-resample.c with 100% similarity]
tests/src/test-mathutils-window.c [moved from tests/src/test-window.c with 100% similarity]
tests/src/test-pitch.c [deleted file]
tests/src/utils/test-hist.c [moved from tests/src/test-hist.c with 100% similarity]
tests/src/utils/test-scale.c [moved from tests/src/test-scale.c with 100% similarity]

index ad98446e3721e1063ab697abf89a77b15916d17e..9c143af7c3b75ae79ae788a5d45bc1e6c94f03f9 100644 (file)
@@ -1,37 +1,42 @@
 AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/examples
 AM_LDFLAGS = -L$(top_builddir)/src -laubio @FFTWLIB_LIBS@
 
-test_phasevoc_jack_CFLAGS = $(AM_CFLAGS) @JACK_CFLAGS@
-test_phasevoc_jack_LDADD  = $(AM_LDFLAGS) @JACK_LIBS@ 
+spectral_test_phasevoc_jack_CFLAGS = $(AM_CFLAGS) @JACK_CFLAGS@
+spectral_test_phasevoc_jack_LDADD  = $(AM_LDFLAGS) @JACK_LIBS@ 
 
-bin_PROGRAMS = \
-       test-hist \
-       test-scale \
-       test-cvec \
-       test-fvec \
-       test-window \
-       test-filter \
-       test-biquad \
-       test-resample \
-       test-peakpick \
-       test-phasevoc \
-       test-filterbank \
-       test-filterbank_mel \
-       test-mfcc \
-       test-phasevoc-jack \
-       test-onsetdetection \
-       test-pitchyin \
-       test-pitchyinfft \
-       test-pitchschmitt \
-       test-pitchfcomb \
-       test-pitchmcomb \
-       test-pitch \
-       test-onset \
-       test-mathutils \
-       test-tss
+noinst_PROGRAMS = \
+  test-fvec \
+  test-cvec \
+  test-mathutils \
+  test-mathutils-window \
+  pitch/test-pitchyin \
+  pitch/test-pitchyinfft \
+  pitch/test-pitch \
+  pitch/test-pitchmcomb \
+  pitch/test-pitchfcomb \
+  pitch/test-pitchschmitt \
+  temporal/test-cweighting \
+  temporal/test-resampler \
+  temporal/test-filter \
+  temporal/test-biquad \
+  temporal/test-aweighting \
+  onset/test-peakpicker \
+  onset/test-onset \
+  tempo/test-tempo \
+  tempo/test-beattracking \
+  spectral/test-fft \
+  spectral/test-specdesc \
+  spectral/test-phasevoc \
+  spectral/test-phasevoc-jack \
+  spectral/test-tss \
+  spectral/test-filterbank \
+  spectral/test-filterbank_mel \
+  spectral/test-mfcc \
+  utils/test-scale \
+  utils/test-hist
 
-run-tests: $(bin_PROGRAMS)
-       @for i in $(bin_PROGRAMS); do echo -n $$i\ ; ./$$i > /dev/null && echo OK || echo FAILED: $$?; done
+run-tests: $(noinst_PROGRAMS)
+       @for i in $(noinst_PROGRAMS); do echo -n $$i\ ; ./$$i > /dev/null && echo OK || echo FAILED: $$?; done
 
-run-valgrind-tests: $(bin_PROGRAMS)
-       @for i in $(bin_PROGRAMS); do echo $$i; valgrind .libs/lt-$$i 2>&1 | grep ERROR\ SUMMARY -A4; echo $$?; done
+run-valgrind-tests: $(noinst_PROGRAMS)
+       @for i in $(noinst_PROGRAMS); do echo $$i; valgrind .libs/lt-$$i 2>&1 | grep ERROR\ SUMMARY -A4; echo $$?; done
diff --git a/tests/src/test-pitch.c b/tests/src/test-pitch.c
deleted file mode 100644 (file)
index e4e209e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <aubio.h>
-
-int main(){
-        /* allocate some memory */
-        uint_t win_s      = 1024; /* window size */
-        fvec_t * in       = new_fvec (win_s); /* input buffer */
-        fvec_t * out      = new_fvec (1); /* input buffer */
-        aubio_pitch_t *p = new_aubio_pitch ("default", win_s, win_s / 2, 44100);
-        uint_t i = 0;
-
-        while (i < 10) {
-          aubio_pitch_do (p, in, out);
-          i++;
-        };
-
-        del_fvec(in);
-        del_fvec(out);
-        aubio_cleanup();
-
-        return 0;
-}
-