move around files in tests/python according to src/ changes
authorPaul Brossier <piem@piem.org>
Fri, 30 Nov 2007 18:39:19 +0000 (19:39 +0100)
committerPaul Brossier <piem@piem.org>
Fri, 30 Nov 2007 18:39:19 +0000 (19:39 +0100)
15 files changed:
tests/python/run_all_tests
tests/python/src/__init__.py [new file with mode: 0644]
tests/python/src/cvec.py [moved from tests/python/cvec.py with 100% similarity]
tests/python/src/fvec.py [moved from tests/python/fvec.py with 100% similarity]
tests/python/src/onset/__init__.py [new file with mode: 0644]
tests/python/src/pitch/__init__.py [new file with mode: 0644]
tests/python/src/pitch/pitchdetection.py [moved from tests/python/pitchdetection.py with 100% similarity]
tests/python/src/spectral/__init__.py [new file with mode: 0644]
tests/python/src/spectral/fft.py [moved from tests/python/fft.py with 100% similarity]
tests/python/src/spectral/filterbank.py [moved from tests/python/filterbank.py with 97% similarity]
tests/python/src/spectral/filterbank_mfcc.txt [moved from tests/python/filterbank_mfcc.txt with 100% similarity]
tests/python/src/spectral/phasevoc.py [moved from tests/python/phasevoc.py with 100% similarity]
tests/python/src/temporal/__init__.py [new file with mode: 0644]
tests/python/src/utils/__init__.py [new file with mode: 0644]
tests/python/src/utils/hist.py [moved from tests/python/hist.py with 100% similarity]

index e2f8065fcfc21386fc999b8a988de3595f6ffbb5..f077a17166e6ce6b8532c95818489bc46978b37b 100755 (executable)
@@ -14,8 +14,11 @@ from glob import glob
 def list_of_test_files(path):
   return [i.split('.')[0].replace('/','.') for i in glob(path)]
 
-modules_to_test  = list_of_test_files('*.py')
+modules_to_test  = []
+modules_to_test += list_of_test_files('src/*.py')
+modules_to_test += list_of_test_files('src/*/*.py')
 modules_to_test += list_of_test_files('examples/aubio*.py')
+modules_to_test += list_of_test_files('*.py')
 
 if __name__ == '__main__':
   for module in modules_to_test: 
diff --git a/tests/python/src/__init__.py b/tests/python/src/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/python/src/onset/__init__.py b/tests/python/src/onset/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/python/src/pitch/__init__.py b/tests/python/src/pitch/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/python/src/spectral/__init__.py b/tests/python/src/spectral/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
similarity index 97%
rename from tests/python/filterbank.py
rename to tests/python/src/spectral/filterbank.py
index 3b04d290285af78752af2f22fda4667abd7586b6..44d6a026e314627205946a26dd92b71fe153f2af 100644 (file)
@@ -91,10 +91,11 @@ class filterbank_test_case(unittest.TestCase):
 
   def testmfcc_channels(self):
       """ check the values of each filters in the mfcc filterbank """
+      import os.path
       self.filterbank = new_aubio_filterbank_mfcc(n_filters, win_size, samplerate, 
         0., samplerate) 
       filterbank_mfcc = [ [float(f) for f in line.strip().split()]
-        for line in open('filterbank_mfcc.txt').readlines()]
+        for line in open(os.path.join('src','spectral','filterbank_mfcc.txt')).readlines()]
       for channel in range(n_filters):
         vec = aubio_filterbank_getchannel(self.filterbank,channel)
         for index in range(win_size): 
diff --git a/tests/python/src/temporal/__init__.py b/tests/python/src/temporal/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/tests/python/src/utils/__init__.py b/tests/python/src/utils/__init__.py
new file mode 100644 (file)
index 0000000..e69de29