/[escript]/branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py
ViewVC logotype

Diff of /branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3349 by caltinay, Mon Nov 15 05:09:56 2010 UTC revision 3368 by jfenwick, Fri Nov 19 05:59:46 2010 UTC
# Line 23  import unittest Line 23  import unittest
23  import tempfile  import tempfile
24    
25  from esys.escript import *  from esys.escript import *
26  from esys.dudley import Rectangle  from esys.dudley import Rectangle, Brick
27  import sys  import sys
28  import os  import os
29  from test_objects import Test_Dump, Test_SetDataPointValue, Test_saveCSV, Test_TableInterpolation  from test_objects import Test_Dump, Test_SetDataPointValue, Test_saveCSV, Test_TableInterpolation
# Line 105  class Test_DataOpsOnDudley(Test_Dump, Te Line 105  class Test_DataOpsOnDudley(Test_Dump, Te
105    
106  class Test_TableInterpolationOnDudley(Test_TableInterpolation):  class Test_TableInterpolationOnDudley(Test_TableInterpolation):
107      def setUp(self):      def setUp(self):
108      self.domain=Rectangle(4,4)      self.domain=Brick(4,4,4)
109      self.functionspaces=[ContinuousFunction(self.domain), Function(self.domain), ReducedFunction(self.domain),      self.functionspaces=[ContinuousFunction(self.domain), Function(self.domain), ReducedFunction(self.domain),
110          FunctionOnBoundary(self.domain), ReducedFunctionOnBoundary(self.domain)]          FunctionOnBoundary(self.domain), ReducedFunctionOnBoundary(self.domain)]
111          #We aren't testing DiracDeltaFunction          #We aren't testing DiracDeltaFunction
112      self.xn=3   # number of grids on x axis      self.xn=5   # number of grids on x axis
113      self.yn=3   # number of grids on y axis      self.yn=5   # number of grids on y axis
114        self.zn=5
115    
116      def tearDown(self):      def tearDown(self):
117      del self.domain      del self.domain
# Line 159  class Test_CSVOnDudley(Test_saveCSV): Line 160  class Test_CSVOnDudley(Test_saveCSV):
160            
161  if __name__ == '__main__':  if __name__ == '__main__':
162     suite = unittest.TestSuite()     suite = unittest.TestSuite()
163     #suite.addTest(unittest.makeSuite(Test_SharedOnDudley))     suite.addTest(unittest.makeSuite(Test_SharedOnDudley))
164       # These two assume macro elements are supported
165     #suite.addTest(unittest.makeSuite(Test_DataOpsOnDudley))     #suite.addTest(unittest.makeSuite(Test_DataOpsOnDudley))
166     #suite.addTest(unittest.makeSuite(Test_DomainOnDudley))     #suite.addTest(unittest.makeSuite(Test_DomainOnDudley))
167     #suite.addTest(unittest.makeSuite(Test_TableInterpolationOnDudley))     suite.addTest(unittest.makeSuite(Test_TableInterpolationOnDudley))
168     suite.addTest(unittest.makeSuite(Test_CSVOnDudley))     suite.addTest(unittest.makeSuite(Test_CSVOnDudley))
169     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)
170     if not s.wasSuccessful(): sys.exit(1)     if not s.wasSuccessful(): sys.exit(1)

Legend:
Removed from v.3349  
changed lines
  Added in v.3368

  ViewVC Help
Powered by ViewVC 1.1.26