Menu

[r4013]: / trunk / toolkits / basemap / examples / run_all.py  Maximize  Restore  History

Download this file

26 lines (24 with data), 782 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import glob, os, sys
test_files = glob.glob('*.py')
test_files.remove('run_all.py')
test_files.remove('fcstmaps.py')
test_files.remove('testgdal.py')
test_files.remove('pnganim.py')
test_files.remove('warpimage.py')
test_files.remove('pupynere.py')
test_files.remove('geos_demo_2.py')
print test_files
py_path = os.environ.get('PYTHONPATH')
if py_path is None:
py_path = '.'
else:
py_path = os.pathsep.join(['.',py_path])
os.environ['PYTHONPATH'] = py_path
for f in test_files:
print "**********************************************"
ff = os.path.join(sys.path[0],f)
args = [sys.executable,ff]
print "Running",' '.join(args)
status = os.spawnve(os.P_WAIT,sys.executable,args,os.environ)
if status:
print 'TEST FAILURE (status=%s)' % (status)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.