Commits

BarryFSmith  committed bfd94b4

more work on python test script

  • Participants
  • Parent commits 81cc81a
  • Branches barry/new-test-makefiles

Comments (0)

Files changed (2)

File bin/maint/runtestsuite.py

 #
 #   Runs the PETSc test suite by parsing the test cases in each source file
 #
+from __future__ import print_function
 import os
 import re
+
+
 #
 def parsecases(filename):
   '''Opens the source code file and generates a list of all the test cases found'''
   '''Prints all the cases'''
   for l in cases:
      if l['regs']:
-       print l['file']+' -np  '+l['np'] + ' requires '+l['regs']+'\n  '+ l['args']
+       print(l['file']+' -np  '+l['np'] + ' requires '+l['regs']+'\n  '+ l['args'])
      else:
-       print l['file']+' -np  '+l['np'] + '\n  '+ l['args']
+       print(l['file']+' -np  '+l['np'] + '\n  '+ l['args'])
 
 def findcase(cases,filename):
   '''Finds a case that generates a particular file name'''
     command = '${PETSC_DIR}/bin/petscmpiexec -valgrind -n '+case['np']+' ./'+prefix+' '+case['args']+' > ltmp'
   else:
     command = '${PETSC_DIR}/bin/petscmpiexec -n '+case['np']+' ./'+prefix+' '+case['args']+' > ltmp'
-  print command
+  #print command
   os.system(command)
   command = '${PETSC_DIR}/bin/petscdiff output/'+case['file']+'.out ltmp'
   flg = os.system(command)
-  if flg: print "Problem with mpiexec  -n '+case['np']+' ./'+prefix+' '+case['args']
+  if flg: print('Problem with mpiexec  -n '+case['np']+' ./'+prefix+' '+case['args'])
 
 def main(petscdir,filename):
   cases = parsecases(filename)
-#  printcases(cases)
   for l in cases:
+    print('.',end="")
+    sys.stdout.flush()
     runcase(l,filename)
   return
 #

File config/PETSc/packages/afterimage.py

     self.libdir        = '../../lib'
     self.double        = 0
     self.complex       = 1
+    self.lookforbydefault  = 1
+    self.worksonWindows    = 1   # requires as lookforbydefault=1 and configure will continue on this test failure
 
   def setupDependencies(self, framework):
     PETSc.package.NewPackage.setupDependencies(self, framework)