[cig-commits] r21740 - in short/3D/PyLith/trunk/unittests/pytests: bc faults feassemble friction materials meshio mpi problems topology utils
brad at geodynamics.org
brad at geodynamics.org
Sat Apr 6 10:02:15 PDT 2013
Author: brad
Date: 2013-04-06 10:02:14 -0700 (Sat, 06 Apr 2013)
New Revision: 21740
Modified:
short/3D/PyLith/trunk/unittests/pytests/bc/testbc.py
short/3D/PyLith/trunk/unittests/pytests/faults/testfaults.py
short/3D/PyLith/trunk/unittests/pytests/feassemble/testfeassemble.py
short/3D/PyLith/trunk/unittests/pytests/friction/testfriction.py
short/3D/PyLith/trunk/unittests/pytests/materials/testmaterials.py
short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerMesh.py
short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerSubMesh.py
short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnPoints.py
short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnSubset.py
short/3D/PyLith/trunk/unittests/pytests/meshio/testcubit.py
short/3D/PyLith/trunk/unittests/pytests/meshio/testhdf5.py
short/3D/PyLith/trunk/unittests/pytests/meshio/testmeshio.py
short/3D/PyLith/trunk/unittests/pytests/mpi/testmpi.py
short/3D/PyLith/trunk/unittests/pytests/problems/testproblems.py
short/3D/PyLith/trunk/unittests/pytests/topology/testtopology.py
short/3D/PyLith/trunk/unittests/pytests/utils/TestPetscManager.py
short/3D/PyLith/trunk/unittests/pytests/utils/testutils.py
Log:
Turn on malloc_dump in Python unit tests.
Modified: short/3D/PyLith/trunk/unittests/pytests/bc/testbc.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/bc/testbc.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/bc/testbc.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
Modified: short/3D/PyLith/trunk/unittests/pytests/faults/testfaults.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/faults/testfaults.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/faults/testfaults.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
Modified: short/3D/PyLith/trunk/unittests/pytests/feassemble/testfeassemble.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/feassemble/testfeassemble.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/feassemble/testfeassemble.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -44,10 +44,13 @@
Run the application.
"""
from pylith.utils.PetscManager import PetscManager
- manager = PetscManager()
- manager.initialize()
+ petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
+ petsc.initialize()
+
unittest.TextTestRunner(verbosity=2).run(self._suite())
- manager.finalize()
+
+ petsc.finalize()
return
Modified: short/3D/PyLith/trunk/unittests/pytests/friction/testfriction.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/friction/testfriction.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/friction/testfriction.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
Modified: short/3D/PyLith/trunk/unittests/pytests/materials/testmaterials.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/materials/testmaterials.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/materials/testmaterials.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerMesh.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerMesh.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerMesh.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -149,7 +149,7 @@
output = OutputManagerMesh()
output.preinitialize(dataProvider)
- self.assertEqual(dataProvider, output.dataProvider)
+ self.failIf(output.dataProvider is None)
return
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerSubMesh.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerSubMesh.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputManagerSubMesh.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -153,7 +153,7 @@
output = OutputManagerSubMesh()
output.preinitialize(dataProvider)
- self.assertEqual(dataProvider, output.dataProvider)
+ self.failIf(output.dataProvider is None)
return
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnPoints.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnPoints.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnPoints.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -83,7 +83,7 @@
output._configure()
output.preinitialize()
- self.assertEqual(output, output.dataProvider)
+ self.failIf(output.dataProvider is None)
return
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnSubset.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnSubset.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/TestOutputSolnSubset.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -81,7 +81,7 @@
output._configure()
output.preinitialize()
- self.assertEqual(output, output.dataProvider)
+ self.failIf(output.dataProvider is None)
return
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/testcubit.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/testcubit.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/testcubit.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -44,10 +44,13 @@
Run the application.
"""
from pylith.utils.PetscManager import PetscManager
- manager = PetscManager()
- manager.initialize()
+ petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
+ petsc.initialize()
+
unittest.TextTestRunner(verbosity=2).run(self._suite())
- manager.finalize()
+
+ petsc.finalize()
return
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/testhdf5.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/testhdf5.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/testhdf5.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -44,10 +44,13 @@
Run the application.
"""
from pylith.utils.PetscManager import PetscManager
- manager = PetscManager()
- manager.initialize()
+ petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
+ petsc.initialize()
+
unittest.TextTestRunner(verbosity=2).run(self._suite())
- manager.finalize()
+
+ petsc.finalize()
return
Modified: short/3D/PyLith/trunk/unittests/pytests/meshio/testmeshio.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/meshio/testmeshio.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/meshio/testmeshio.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -44,12 +44,13 @@
Run the application.
"""
from pylith.utils.PetscManager import PetscManager
- manager = PetscManager()
- manager.initialize()
+ petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
+ petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
- manager.finalize()
+ petsc.finalize()
return
Modified: short/3D/PyLith/trunk/unittests/pytests/mpi/testmpi.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/mpi/testmpi.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/mpi/testmpi.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
Modified: short/3D/PyLith/trunk/unittests/pytests/problems/testproblems.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/problems/testproblems.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/problems/testproblems.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
Modified: short/3D/PyLith/trunk/unittests/pytests/topology/testtopology.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/topology/testtopology.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/topology/testtopology.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -44,10 +44,13 @@
Run the application.
"""
from pylith.utils.PetscManager import PetscManager
- manager = PetscManager()
- manager.initialize()
+ petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
+ petsc.initialize()
+
unittest.TextTestRunner(verbosity=2).run(self._suite())
- manager.finalize()
+
+ petsc.finalize()
return
Modified: short/3D/PyLith/trunk/unittests/pytests/utils/TestPetscManager.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/utils/TestPetscManager.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/utils/TestPetscManager.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -35,8 +35,8 @@
from pylith.utils.PetscManager import PetscManager
from pylith.utils.petsc import optionsSetValue
manager = PetscManager()
+ manager.options = [("vec_type", "seq")]
manager.initialize()
- optionsSetValue("-vec_type", "seq")
manager.finalize()
return
Modified: short/3D/PyLith/trunk/unittests/pytests/utils/testutils.py
===================================================================
--- short/3D/PyLith/trunk/unittests/pytests/utils/testutils.py 2013-04-06 12:06:44 UTC (rev 21739)
+++ short/3D/PyLith/trunk/unittests/pytests/utils/testutils.py 2013-04-06 17:02:14 UTC (rev 21740)
@@ -45,6 +45,7 @@
"""
from pylith.utils.PetscManager import PetscManager
petsc = PetscManager()
+ petsc.options = [("malloc_dump", "true")]
petsc.initialize()
unittest.TextTestRunner(verbosity=2).run(self._suite())
More information about the CIG-COMMITS
mailing list