move python/tests to tests/python, examples/tests to tests/src, add .bzrignore
authorPaul Brossier <piem@piem.org>
Tue, 30 Oct 2007 02:00:22 +0000 (03:00 +0100)
committerPaul Brossier <piem@piem.org>
Tue, 30 Oct 2007 02:00:22 +0000 (03:00 +0100)
42 files changed:
.bzrignore [new file with mode: 0644]
configure.ac
examples/Makefile.am
python/test/list_missing_tests [deleted file]
tests/list_missing_python_tests [new file with mode: 0755]
tests/python/aubiomodule.py [moved from python/test/aubiomodule.py with 100% similarity]
tests/python/bench/onset/Makefile.am [moved from python/test/bench/onset/Makefile.am with 100% similarity]
tests/python/bench/onset/bench-delay [moved from python/test/bench/onset/bench-delay with 100% similarity]
tests/python/bench/onset/bench-onset [moved from python/test/bench/onset/bench-onset with 100% similarity]
tests/python/bench/onset/bench-window [moved from python/test/bench/onset/bench-window with 100% similarity]
tests/python/bench/pitch/Makefile.am [moved from python/test/bench/pitch/Makefile.am with 100% similarity]
tests/python/bench/pitch/bench-pitch-isolated [moved from python/test/bench/pitch/bench-pitch-isolated with 100% similarity]
tests/python/bench/pitch/bench-pitch-plot-isolated [moved from python/test/bench/pitch/bench-pitch-plot-isolated with 100% similarity]
tests/python/bench/tempo/demo-tempo [moved from python/test/bench/tempo/demo-tempo with 100% similarity]
tests/python/bench/tempo/demo-tempo-acf [moved from python/test/bench/tempo/demo-tempo-acf with 100% similarity]
tests/python/cvec.py [moved from python/test/cvec.py with 100% similarity]
tests/python/fvec.py [moved from python/test/fvec.py with 100% similarity]
tests/python/run_all_tests [moved from python/test/run_all_tests with 66% similarity]
tests/src/Makefile.am [moved from examples/tests/Makefile.am with 100% similarity]
tests/src/test-beattracking.c [moved from examples/tests/test-beattracking.c with 100% similarity]
tests/src/test-biquad.c [moved from examples/tests/test-biquad.c with 100% similarity]
tests/src/test-fft.c [moved from examples/tests/test-fft.c with 100% similarity]
tests/src/test-filter.c [moved from examples/tests/test-filter.c with 100% similarity]
tests/src/test-hist.c [moved from examples/tests/test-hist.c with 100% similarity]
tests/src/test-mfft.c [moved from examples/tests/test-mfft.c with 100% similarity]
tests/src/test-onset.c [moved from examples/tests/test-onset.c with 100% similarity]
tests/src/test-onsetdetection.c [moved from examples/tests/test-onsetdetection.c with 100% similarity]
tests/src/test-peakpick.c [moved from examples/tests/test-peakpick.c with 100% similarity]
tests/src/test-phasevoc-jack.c [moved from examples/tests/test-phasevoc-jack.c with 100% similarity]
tests/src/test-phasevoc.c [moved from examples/tests/test-phasevoc.c with 100% similarity]
tests/src/test-pitchdetection.c [moved from examples/tests/test-pitchdetection.c with 100% similarity]
tests/src/test-pitchfcomb.c [moved from examples/tests/test-pitchfcomb.c with 100% similarity]
tests/src/test-pitchmcomb.c [moved from examples/tests/test-pitchmcomb.c with 100% similarity]
tests/src/test-pitchschmitt.c [moved from examples/tests/test-pitchschmitt.c with 100% similarity]
tests/src/test-pitchyin.c [moved from examples/tests/test-pitchyin.c with 100% similarity]
tests/src/test-pitchyinfft.c [moved from examples/tests/test-pitchyinfft.c with 100% similarity]
tests/src/test-resample.c [moved from examples/tests/test-resample.c with 100% similarity]
tests/src/test-sample.c [moved from examples/tests/test-sample.c with 100% similarity]
tests/src/test-scale.c [moved from examples/tests/test-scale.c with 100% similarity]
tests/src/test-tempo.c [moved from examples/tests/test-tempo.c with 100% similarity]
tests/src/test-tss.c [moved from examples/tests/test-tss.c with 100% similarity]
tests/src/test-window.c [moved from examples/tests/test-window.c with 100% similarity]

diff --git a/.bzrignore b/.bzrignore
new file mode 100644 (file)
index 0000000..4fb10de
--- /dev/null
@@ -0,0 +1,25 @@
+*/Makefile.in
+*/*/Makefile.in
+*/*/*/Makefile.in
+*/Makefile
+*/*/Makefile
+*/*/*/Makefile
+*/.deps
+*/*/.deps
+*/*/*/.deps
+*/.libs
+*/*/.libs
+*/*/*/.libs
+*/*.lo
+*/*/*.lo
+*/*/*/*.lo
+*/*.la
+plugins/puredata/aubio.pd_linux
+doc/aubiocut.1
+doc/aubionotes.1
+doc/aubioonset.1
+doc/aubiopitch.1
+doc/aubiotrack.1
+src/config.h
+src/config.h.in
+src/stamp-h1
index 1d0ab91ec228314f109379c5f4dc86fe352a4f3f..93ef03a0c2fd53e69cc091ce1b1e11fb5d33c048 100644 (file)
@@ -240,7 +240,8 @@ AC_OUTPUT([
     src/Makefile
     ext/Makefile
     examples/Makefile
-    examples/tests/Makefile
+    tests/Makefile
+    tests/src/Makefile
     sounds/Makefile
     swig/Makefile
     python/Makefile
index 94a20f11872b22f9bf15f4cac22c9fd04d7675d0..a09dfc60e5becb7ebee062e8201920226279201d 100644 (file)
@@ -1,7 +1,3 @@
-if COMPILE_TESTS 
-SUBDIRS = tests
-endif
-
 # global flags
 AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(top_srcdir)/src -I$(top_srcdir)/ext @AUBIO_CFLAGS@ @LASH_CFLAGS@ @FFTWLIB_CFLAGS@
 AM_LDFLAGS = -L$(top_builddir)/src -L$(top_builddir)/ext -laubioext -laubio @LASH_LIBS@
diff --git a/python/test/list_missing_tests b/python/test/list_missing_tests
deleted file mode 100755 (executable)
index 3d5e574..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#! /usr/bin/python
-
-from glob import glob
-from os.path import splitext, exists
-import sys
-
-if len(sys.argv) > 1: verbose = True
-else: verbose = False
-
-cfiles = [ file.split('/')[-1] for file in glob('../../src/*.c') ]
-cfiles.sort()
-
-for cfile in cfiles: 
-  pythonfile=splitext(cfile)[0]+'.py'
-  if not exists(pythonfile):
-    print "[X] %30s" % cfile, "[ ] %30s" % pythonfile
-    #print cfile, "has NO test", pythonfile
-  elif verbose:
-    print "[X] %30s" % cfile, "[X] %30s" % pythonfile
-
-pythonfiles = [ file.split('/')[-1] for file in glob('*.py') ]
-pythonfiles.sort()
-
-for pythonfile in pythonfiles: 
-  cfile=splitext(pythonfile)[0]+'.c'
-  if not exists('../../'+cfile):
-    print "[ ] %30s" % cfile, "[X] %30s" % pythonfile
-    #print pythonfile, "has NO source", cfile
-  elif verbose:
-    print "[X] %30s" % cfile, "[X] %30s" % pythonfile
diff --git a/tests/list_missing_python_tests b/tests/list_missing_python_tests
new file mode 100755 (executable)
index 0000000..33bd8bc
--- /dev/null
@@ -0,0 +1,37 @@
+#! /usr/bin/python
+
+from glob import glob
+from os.path import splitext, exists, join, dirname
+import sys
+
+tst_dir = join(dirname(sys.argv[0]),'python')
+src_dir = join(dirname(sys.argv[0]),'..','src')
+
+if len(sys.argv) > 1: verbose = True
+else: verbose = False
+
+status = 0
+
+cfiles = [ file.split('/')[-1] for file in glob(join(src_dir,'*.c')) ]
+cfiles.sort()
+
+for cfile in cfiles: 
+  pythonfile=splitext(cfile)[0]+'.py'
+  if not exists(pythonfile):
+    print "%20s [X]" % cfile, "[ ] %s" % pythonfile
+    status = 1
+  elif verbose:
+    print "%20s [X]" % cfile, "[X] %s" % pythonfile
+
+pythonfiles = [ file.split('/')[-1] for file in glob(join(tst_dir,'*.py')) ]
+pythonfiles.sort()
+
+for pythonfile in pythonfiles: 
+  cfile=splitext(pythonfile)[0]+'.c'
+  if not exists(join(src_dir,cfile)):
+    print "%20s [ ]" % cfile, "[X] %s" % pythonfile
+    status = 1
+  elif verbose:
+    print "%20s [X]" % cfile, "[X] %s" % pythonfile
+
+sys.exit(status)
similarity index 100%
rename from python/test/cvec.py
rename to tests/python/cvec.py
similarity index 100%
rename from python/test/fvec.py
rename to tests/python/fvec.py
similarity index 66%
rename from python/test/run_all_tests
rename to tests/python/run_all_tests
index a066ca3afba8caf026baa3badd48817a1a1b1300..f09eaec3bc8baa9732fa70731cded2be59e2ca41 100755 (executable)
@@ -3,8 +3,10 @@
 # add ${src}/python and ${src}/python/aubio/.libs to python path
 # so the script is runnable from a compiled source tree.
 import sys, os
-sys.path.append('..')
-sys.path.append(os.path.join('..','aubio','.libs'))
+
+cur_dir = os.path.dirname(sys.argv[0])
+sys.path.append(os.path.join(cur_dir,'..','..','python'))
+sys.path.append(os.path.join(cur_dir,'..','..','python','aubio','.libs'))
 
 import unittest