History

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

Paul Brossier committed 19 years ago

Commit 6bec1ed1 parent e34b0101 file · +30 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/test/list_missing_tests+30−0
@@ -0,0 +1,30 @@
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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t