Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -0,0 +1,30 @@ | ||
| 1 | +#! /usr/bin/python | |
| 2 | + | |
| 3 | +from glob import glob | |
| 4 | +from os.path import splitext, exists | |
| 5 | +import sys | |
| 6 | + | |
| 7 | +if len(sys.argv) > 1: verbose = True | |
| 8 | +else: verbose = False | |
| 9 | + | |
| 10 | +cfiles = [ file.split('/')[-1] for file in glob('../../src/*.c') ] | |
| 11 | +cfiles.sort() | |
| 12 | + | |
| 13 | +for cfile in cfiles: | |
| 14 | + pythonfile=splitext(cfile)[0]+'.py' | |
| 15 | + if not exists(pythonfile): | |
| 16 | + print "[X] %30s" % cfile, "[ ] %30s" % pythonfile | |
| 17 | + #print cfile, "has NO test", pythonfile | |
| 18 | + elif verbose: | |
| 19 | + print "[X] %30s" % cfile, "[X] %30s" % pythonfile | |
| 20 | + | |
| 21 | +pythonfiles = [ file.split('/')[-1] for file in glob('*.py') ] | |
| 22 | +pythonfiles.sort() | |
| 23 | + | |
| 24 | +for pythonfile in pythonfiles: | |
| 25 | + cfile=splitext(pythonfile)[0]+'.c' | |
| 26 | + if not exists('../../'+cfile): | |
| 27 | + print "[ ] %30s" % cfile, "[X] %30s" % pythonfile | |
| 28 | + #print pythonfile, "has NO source", cfile | |
| 29 | + elif verbose: | |
| 30 | + print "[X] %30s" % cfile, "[X] %30s" % pythonfile | |