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
+++ /dev/null
-#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;
-}
-