[cig-commits] r13770 - cs/cigma/trunk/tests/pytests
luis at geodynamics.org
luis at geodynamics.org
Wed Dec 17 02:33:41 PST 2008
Author: luis
Date: 2008-12-17 02:33:41 -0800 (Wed, 17 Dec 2008)
New Revision: 13770
Modified:
cs/cigma/trunk/tests/pytests/skel.py
cs/cigma/trunk/tests/pytests/test_cell.py
cs/cigma/trunk/tests/pytests/test_cigma.py
cs/cigma/trunk/tests/pytests/test_compare.py
cs/cigma/trunk/tests/pytests/test_dof_handler.py
cs/cigma/trunk/tests/pytests/test_eval.py
cs/cigma/trunk/tests/pytests/test_extract.py
cs/cigma/trunk/tests/pytests/test_fe.py
cs/cigma/trunk/tests/pytests/test_field.py
cs/cigma/trunk/tests/pytests/test_function.py
cs/cigma/trunk/tests/pytests/test_locator.py
cs/cigma/trunk/tests/pytests/test_mesh_part.py
cs/cigma/trunk/tests/pytests/test_point.py
cs/cigma/trunk/tests/pytests/test_points.py
cs/cigma/trunk/tests/pytests/test_quadrature.py
cs/cigma/trunk/tests/pytests/test_residuals.py
Log:
Change python's sys.path so we can run pytests without a system wide symlink to _cigma.so
Modified: cs/cigma/trunk/tests/pytests/skel.py
===================================================================
--- cs/cigma/trunk/tests/pytests/skel.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/skel.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import XYZ
Modified: cs/cigma/trunk/tests/pytests/test_cell.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_cell.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_cell.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
import numpy
from _cigma import hex8, tet4, quad4, tri3
Modified: cs/cigma/trunk/tests/pytests/test_cigma.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_cigma.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_cigma.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-
import unittest
class tester_t(unittest.TestCase):
@@ -8,6 +7,9 @@
def test_one_plus_one(self):
self.failUnless(1 + 1 == 2)
def test_cigma_hello(self):
+ import sys
+ sys.path.insert(1,'../../.libs')
+ sys.path.insert(1,'./.libs')
import _cigma
msg = _cigma.hello()
self.failUnless(msg == 'Hello World!')
Modified: cs/cigma/trunk/tests/pytests/test_compare.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_compare.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_compare.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import CompareOp
Modified: cs/cigma/trunk/tests/pytests/test_dof_handler.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_dof_handler.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_dof_handler.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import DofHandler
Modified: cs/cigma/trunk/tests/pytests/test_eval.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_eval.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_eval.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import EvalOp
Modified: cs/cigma/trunk/tests/pytests/test_extract.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_extract.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_extract.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import ExtractOp
Modified: cs/cigma/trunk/tests/pytests/test_fe.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_fe.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_fe.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import FE
Modified: cs/cigma/trunk/tests/pytests/test_field.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_field.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_field.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import Field
Modified: cs/cigma/trunk/tests/pytests/test_function.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_function.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_function.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import Function
Modified: cs/cigma/trunk/tests/pytests/test_locator.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_locator.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_locator.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import Locator
class MyLocator(Locator):
Modified: cs/cigma/trunk/tests/pytests/test_mesh_part.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_mesh_part.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_mesh_part.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
import numpy
from _cigma import MeshPart, nc_array, eb_array
Modified: cs/cigma/trunk/tests/pytests/test_point.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_point.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_point.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import Point2d, Point3d
Modified: cs/cigma/trunk/tests/pytests/test_points.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_points.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_points.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import Points2d, Points3d
Modified: cs/cigma/trunk/tests/pytests/test_quadrature.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_quadrature.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_quadrature.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
import numpy
from _cigma import Quadrature
Modified: cs/cigma/trunk/tests/pytests/test_residuals.py
===================================================================
--- cs/cigma/trunk/tests/pytests/test_residuals.py 2008-12-17 10:33:39 UTC (rev 13769)
+++ cs/cigma/trunk/tests/pytests/test_residuals.py 2008-12-17 10:33:41 UTC (rev 13770)
@@ -1,4 +1,7 @@
#!/usr/bin/env python
+import sys
+sys.path.insert(1,'../../.libs')
+sys.path.insert(1,'./.libs')
from _cigma import Residuals
More information about the CIG-COMMITS
mailing list