source: python/test/list_missing_tests @ 00c522b

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 00c522b was 6bec1ed, checked in by Paul Brossier <piem@piem.org>, 17 years ago

list_missing_tests: add script to get the list of missing test files

  • Property mode set to 100755
File size: 846 bytes
Line 
1#! /usr/bin/python
2
3from glob import glob
4from os.path import splitext, exists
5import sys
6
7if len(sys.argv) > 1: verbose = True
8else: verbose = False
9
10cfiles = [ file.split('/')[-1] for file in glob('../../src/*.c') ]
11cfiles.sort()
12
13for 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
21pythonfiles = [ file.split('/')[-1] for file in glob('*.py') ]
22pythonfiles.sort()
23
24for 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
Note: See TracBrowser for help on using the repository browser.