source: python/test/all_tests.py @ 647a2d8

feature/autosinkfeature/constantqfeature/pitchshiftfeature/pydocstringsfeature/timestretchpitchshiftsamplertimestretchyinfft+
Last change on this file since 647a2d8 was 647a2d8, checked in by Paul Brossier <piem@piem.org>, 13 years ago

load all tests from python test directory, add pitchdetection test

  • Property mode set to 100755
File size: 503 bytes
Line 
1#! /usr/bin/python
2
3# add ${src}/python and ${src}/python/aubio/.libs to python path
4# so the script is runnable from a compiled source tree.
5import sys, os
6sys.path.append('..')
7sys.path.append(os.path.join('..','aubio','.libs'))
8
9import unittest
10
11from glob import glob
12modules_to_test = [i.split('.')[0] for i in glob('*.py')]
13
14if __name__ == '__main__':
15  for module in modules_to_test: 
16    if module != 'all_tests': # (not actually needed)
17      exec('from %s import *' % module)
18  unittest.main()
Note: See TracBrowser for help on using the repository browser.