Changeset 64cf353 in flex_extract.git for python/testsuite.py
- Timestamp:
- Feb 8, 2018, 9:54:05 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 02c8c50
- Parents:
- 6180177
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/testsuite.py
rd69b677 r64cf353 2 2 3 3 # This software is licensed under the terms of the Apache Licence Version 2.0 4 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 5 # 4 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 5 # 6 6 # Leopold Haimberger, Dec 2015 7 7 # 8 8 # Functionality provided: This script triggers the ECMWFDATA test suite. Call with 9 9 # testsuite.py [test group] 10 # 10 # 11 11 # 12 12 # Further documentation may be obtained from www.flexpart.eu 13 # 13 # 14 14 # Test groups are specified in testsuite.json 15 15 # in addition to a standard python 2.6 or 2.7 installation the following packages need to be installed … … 21 21 import json 22 22 import subprocess 23 23 24 try: 24 25 taskfile=open('testsuite.json') … … 41 42 os.makedirs('../test') 42 43 if len(sys.argv)>1: 43 groups=sys.argv[1:] 44 groups=sys.argv[1:] 44 45 else: 45 46 groups=['xinstall','default','ops','work','cv','fc']#,'hires'] … … 53 54 garglist=[] 54 55 for ttk,ttv in tv.iteritems(): 55 if isinstance(ttv,basestring): 56 if isinstance(ttv,basestring): 56 57 if ttk!='script': 57 58 garglist.append('--'+ttk) … … 64 65 arglist=[] 65 66 for tttk,tttv in ttv.iteritems(): 66 if isinstance(tttv,basestring): 67 if isinstance(tttv,basestring): 67 68 arglist.append('--'+tttk) 68 69 if '$' in tttv[0]: 69 arglist.append(os.path.expandvars(tttv)) 70 arglist.append(os.path.expandvars(tttv)) 70 71 else: 71 72 arglist.append(tttv) … … 86 87 print str(jobcounter-jobfailed)+' successful, '+str(jobfailed)+' failed' 87 88 print 'If tasks have been submitted via ECACCESS please check emails' 88 89 89 90 #print tasks
Note: See TracChangeset
for help on using the changeset viewer.