[cig-commits] r21390 - in short/3D/PyLith/trunk/tests_auto: eqinfo petsc

brad at geodynamics.org brad at geodynamics.org
Mon Feb 25 12:26:50 PST 2013


Author: brad
Date: 2013-02-25 12:26:50 -0800 (Mon, 25 Feb 2013)
New Revision: 21390

Modified:
   short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoLine.py
   short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoQuad4.py
   short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoTri3.py
   short/3D/PyLith/trunk/tests_auto/petsc/TestPetscApp.py
Log:
Added __main__ to allow tests to be run individually.

Modified: short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoLine.py
===================================================================
--- short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoLine.py	2013-02-25 20:20:48 UTC (rev 21389)
+++ short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoLine.py	2013-02-25 20:26:50 UTC (rev 21390)
@@ -92,4 +92,14 @@
     return
 
 
+# ----------------------------------------------------------------------
+if __name__ == '__main__':
+  import unittest
+  from TestEqInfoLine import TestEqInfoLine as Tester
+
+  suite = unittest.TestSuite()
+  suite.addTest(unittest.makeSuite(Tester))
+  unittest.TextTestRunner(verbosity=2).run(suite)
+
+
 # End of file 

Modified: short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoQuad4.py
===================================================================
--- short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoQuad4.py	2013-02-25 20:20:48 UTC (rev 21389)
+++ short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoQuad4.py	2013-02-25 20:26:50 UTC (rev 21390)
@@ -98,4 +98,14 @@
     return
 
 
+# ----------------------------------------------------------------------
+if __name__ == '__main__':
+  import unittest
+  from TestEqInfoQuad4 import TestEqInfoQuad4 as Tester
+
+  suite = unittest.TestSuite()
+  suite.addTest(unittest.makeSuite(Tester))
+  unittest.TextTestRunner(verbosity=2).run(suite)
+
+
 # End of file 

Modified: short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoTri3.py
===================================================================
--- short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoTri3.py	2013-02-25 20:20:48 UTC (rev 21389)
+++ short/3D/PyLith/trunk/tests_auto/eqinfo/TestEqInfoTri3.py	2013-02-25 20:26:50 UTC (rev 21390)
@@ -93,4 +93,14 @@
     return
 
 
+# ----------------------------------------------------------------------
+if __name__ == '__main__':
+  import unittest
+  from TestEqInfoTri3 import TestEqInfoTri3 as Tester
+
+  suite = unittest.TestSuite()
+  suite.addTest(unittest.makeSuite(Tester))
+  unittest.TextTestRunner(verbosity=2).run(suite)
+
+
 # End of file 

Modified: short/3D/PyLith/trunk/tests_auto/petsc/TestPetscApp.py
===================================================================
--- short/3D/PyLith/trunk/tests_auto/petsc/TestPetscApp.py	2013-02-25 20:20:48 UTC (rev 21389)
+++ short/3D/PyLith/trunk/tests_auto/petsc/TestPetscApp.py	2013-02-25 20:26:50 UTC (rev 21390)
@@ -84,4 +84,14 @@
     return
 
 
+# ----------------------------------------------------------------------
+if __name__ == '__main__':
+  import unittest
+  from TestPetscApp import TestPetscApp as Tester
+
+  suite = unittest.TestSuite()
+  suite.addTest(unittest.makeSuite(Tester))
+  unittest.TextTestRunner(verbosity=2).run(suite)
+
+
 # End of file 



More information about the CIG-COMMITS mailing list