source: tests/list_missing_python_tests @ 71d9f52

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

move python/tests to tests/python, examples/tests to tests/src, add .bzrignore

  • Property mode set to 100755
File size: 941 bytes
Line 
1#! /usr/bin/python
2
3from glob import glob
4from os.path import splitext, exists, join, dirname
5import sys
6
7tst_dir = join(dirname(sys.argv[0]),'python')
8src_dir = join(dirname(sys.argv[0]),'..','src')
9
10if len(sys.argv) > 1: verbose = True
11else: verbose = False
12
13status = 0
14
15cfiles = [ file.split('/')[-1] for file in glob(join(src_dir,'*.c')) ]
16cfiles.sort()
17
18for cfile in cfiles:
19  pythonfile=splitext(cfile)[0]+'.py'
20  if not exists(pythonfile):
21    print "%20s [X]" % cfile, "[ ] %s" % pythonfile
22    status = 1
23  elif verbose:
24    print "%20s [X]" % cfile, "[X] %s" % pythonfile
25
26pythonfiles = [ file.split('/')[-1] for file in glob(join(tst_dir,'*.py')) ]
27pythonfiles.sort()
28
29for pythonfile in pythonfiles:
30  cfile=splitext(pythonfile)[0]+'.c'
31  if not exists(join(src_dir,cfile)):
32    print "%20s [ ]" % cfile, "[X] %s" % pythonfile
33    status = 1
34  elif verbose:
35    print "%20s [X]" % cfile, "[X] %s" % pythonfile
36
37sys.exit(status)
Note: See TracBrowser for help on using the repository browser.