source: tests/python/run_all_tests @ 82c588a

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

merge from main branch

  • Property mode set to 100755
File size: 601 bytes
RevLine 
[229ea56]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
[de2a8af]6
7cur_dir = os.path.dirname(sys.argv[0])
8sys.path.append(os.path.join(cur_dir,'..','..','python'))
9sys.path.append(os.path.join(cur_dir,'..','..','python','aubio','.libs'))
[229ea56]10
11import unittest
12
[647a2d8]13from glob import glob
14modules_to_test = [i.split('.')[0] for i in glob('*.py')]
[229ea56]15
16if __name__ == '__main__':
[647a2d8]17  for module in modules_to_test:
18    if module != 'all_tests': # (not actually needed)
19      exec('from %s import *' % module)
[229ea56]20  unittest.main()
Note: See TracBrowser for help on using the repository browser.