From: Paul Brossier Date: Fri, 16 May 2008 18:20:03 +0000 (+0200) Subject: tests/python/run_all_tests: add a warning if list_of_test_files returns no matches... X-Git-Tag: bzr2git~384 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4ecfee960a1cd5c60f223226b8edb69ffcf62529;p=aubio.git tests/python/run_all_tests: add a warning if list_of_test_files returns no matches, localaubio first --- diff --git a/tests/python/run_all_tests b/tests/python/run_all_tests index f1612243..68caefb2 100755 --- a/tests/python/run_all_tests +++ b/tests/python/run_all_tests @@ -4,9 +4,12 @@ import unittest from glob import glob def list_of_test_files(path): - return [i.split('.')[0].replace('/','.') for i in glob(path)] + matches = glob(path) + if not matches: print "WARNING: no matches for %s" % path + return [i.split('.')[0].replace('/','.') for i in matches] modules_to_test = [] +modules_to_test += ['localaubio'] modules_to_test += list_of_test_files('src/*.py') modules_to_test += list_of_test_files('src/*/*.py') modules_to_test += list_of_test_files('examples/aubio*.py')