From: Paul Brossier Date: Wed, 17 Oct 2007 16:17:59 +0000 (+0200) Subject: list_missing_tests: add script to get the list of missing test files X-Git-Tag: bzr2git~513 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6bec1ed6f67600c1027ca79da426262a3c0bc959;p=aubio.git list_missing_tests: add script to get the list of missing test files --- diff --git a/python/test/list_missing_tests b/python/test/list_missing_tests new file mode 100755 index 00000000..3d5e5744 --- /dev/null +++ b/python/test/list_missing_tests @@ -0,0 +1,30 @@ +#! /usr/bin/python + +from glob import glob +from os.path import splitext, exists +import sys + +if len(sys.argv) > 1: verbose = True +else: verbose = False + +cfiles = [ file.split('/')[-1] for file in glob('../../src/*.c') ] +cfiles.sort() + +for cfile in cfiles: + pythonfile=splitext(cfile)[0]+'.py' + if not exists(pythonfile): + print "[X] %30s" % cfile, "[ ] %30s" % pythonfile + #print cfile, "has NO test", pythonfile + elif verbose: + print "[X] %30s" % cfile, "[X] %30s" % pythonfile + +pythonfiles = [ file.split('/')[-1] for file in glob('*.py') ] +pythonfiles.sort() + +for pythonfile in pythonfiles: + cfile=splitext(pythonfile)[0]+'.c' + if not exists('../../'+cfile): + print "[ ] %30s" % cfile, "[X] %30s" % pythonfile + #print pythonfile, "has NO source", cfile + elif verbose: + print "[X] %30s" % cfile, "[X] %30s" % pythonfile