source: tests/python/run_all_tests @ 0380645

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 0380645 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
RevLine 
[229ea56]1#! /usr/bin/python
2
3import unittest
4
[647a2d8]5from glob import glob
[031b1f9]6def list_of_test_files(path):
7  return [i.split('.')[0].replace('/','.') for i in glob(path)]
8
[66a150a2]9modules_to_test  = []
10modules_to_test += list_of_test_files('src/*.py')
11modules_to_test += list_of_test_files('src/*/*.py')
[031b1f9]12modules_to_test += list_of_test_files('examples/aubio*.py')
[66a150a2]13modules_to_test += list_of_test_files('*.py')
[229ea56]14
15if __name__ == '__main__':
[647a2d8]16  for module in modules_to_test:
[031b1f9]17    if module != 'run_all_tests': # (not actually needed)
[647a2d8]18      exec('from %s import *' % module)
[229ea56]19  unittest.main()
Note: See TracBrowser for help on using the repository browser.