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