--- /dev/null
+*/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
src/Makefile
ext/Makefile
examples/Makefile
- examples/tests/Makefile
+ tests/Makefile
+ tests/src/Makefile
sounds/Makefile
swig/Makefile
python/Makefile
-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@
+++ /dev/null
-#! /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
--- /dev/null
+#! /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)
# 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