source: tests/python/run_all_tests @ a7667ce

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since a7667ce was 974dddc, checked in by Paul Brossier <piem@piem.org>, 17 years ago

move tests/python/demo to tests/, add localaubio.py module helpers

  • Property mode set to 100755
File size: 562 bytes
Line 
1#! /usr/bin/python
2
3import unittest
4
5from glob import glob
6def list_of_test_files(path):
7  return [i.split('.')[0].replace('/','.') for i in glob(path)]
8
9modules_to_test  = []
10modules_to_test += list_of_test_files('src/*.py')
11modules_to_test += list_of_test_files('src/*/*.py')
12modules_to_test += list_of_test_files('examples/aubio*.py')
13modules_to_test += list_of_test_files('*.py')
14
15if __name__ == '__main__':
16  for module in modules_to_test:
17    if module != 'run_all_tests': # (not actually needed)
18      exec('from %s import *' % module)
19  unittest.main()
Note: See TracBrowser for help on using the repository browser.