~ubuntu-branches/ubuntu/trusty/yade/trusty

« back to all changes in this revision

Viewing changes to scripts/checks-and-tests/checks/checkList.py

  • Committer: Package Import Robot
  • Author(s): Anton Gladky, cf3f8d9
  • Date: 2013-10-30 20:56:33 UTC
  • mfrom: (20.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20131030205633-1f01r7hjce17d723
Tags: 1.05.0-2
[cf3f8d9] Pass -ftrack-macro-expansion=0 only if gcc>=4.8. (Closes: #726009)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
scriptsToRun=os.listdir(checksPath)
6
6
resultStatus = 0
 
7
nFailed=0
 
8
 
 
9
skipScripts = ['checkList.py', 'DEM-PFV-check.py']
 
10
 
7
11
for script in scriptsToRun:
8
 
        if (script[len(script)-3:]==".py" and not(script=="checkList.py")):
 
12
        if (script[len(script)-3:]==".py" and script not in skipScripts):
9
13
                try:
10
14
                        print "###################################"
11
15
                        print "running: ",script
12
16
                        execfile(checksPath+"/"+script)
13
 
                        if (resultStatus):
 
17
                        if (resultStatus>nFailed):
14
18
                                print "Status: FAILURE!!!"
 
19
                                nFailed=resultStatus
15
20
                        else:
16
21
                                print "Status: success"
17
22
                        print "___________________________________"
18
23
                except:
19
24
                        print script," failure"
20
25
                O.reset()
 
26
        elif (script in skipScripts):
 
27
                print "###################################"
 
28
                print "Skipping %s, because it is in SkipScripts"%script
21
29
                
22
 
if (resultStatus):
23
 
        print "Some tests are failed!"
 
30
if (resultStatus>0):
 
31
        print resultStatus, " tests are failed"
24
32
        sys.exit(1)
25
33
else:
26
34
        sys.exit(0)