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