3 # add ${src}/python and ${src}/python/aubio/.libs to python path
4 # so the script is runnable from a compiled source tree.
7 cur_dir = os.path.dirname(sys.argv[0])
8 sys.path.append(os.path.join(cur_dir,'..','..','python'))
9 sys.path.append(os.path.join(cur_dir,'..','..','python','aubio','.libs'))
14 def list_of_test_files(path):
15 return [i.split('.')[0].replace('/','.') for i in glob(path)]
17 modules_to_test = list_of_test_files('*.py')
18 modules_to_test += list_of_test_files('examples/aubio*.py')
20 if __name__ == '__main__':
21 for module in modules_to_test:
22 if module != 'run_all_tests': # (not actually needed)
23 exec('from %s import *' % module)