move python/tests to tests/python, examples/tests to tests/src, add .bzrignore
[aubio.git] / tests / python / run_all_tests
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.
5 import sys, os
6
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'))
10
11 import unittest
12
13 modules_to_test = ['aubiomodule', 'fvec', 'cvec']
14
15 if __name__ == '__main__':
16   for module in modules_to_test: exec('from %s import *' % module)
17   unittest.main()