feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since 36fa6cb 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 | |
---|
3 | from glob import glob |
---|
4 | from os.path import splitext, exists, join, dirname |
---|
5 | import sys |
---|
6 | |
---|
7 | tst_dir = join(dirname(sys.argv[0]),'python') |
---|
8 | src_dir = join(dirname(sys.argv[0]),'..','src') |
---|
9 | |
---|
10 | if len(sys.argv) > 1: verbose = True |
---|
11 | else: verbose = False |
---|
12 | |
---|
13 | status = 0 |
---|
14 | |
---|
15 | cfiles = [ file.split('/')[-1] for file in glob(join(src_dir,'*.c')) ] |
---|
16 | cfiles.sort() |
---|
17 | |
---|
18 | for 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 | |
---|
26 | pythonfiles = [ file.split('/')[-1] for file in glob(join(tst_dir,'*.py')) ] |
---|
27 | pythonfiles.sort() |
---|
28 | |
---|
29 | for 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 | |
---|
37 | sys.exit(status) |
---|
Note: See
TracBrowser
for help on using the repository browser.