/[escript]/trunk/finley/test/python/run_escriptOnFinley.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_escriptOnFinley.py

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

revision 1043 by gross, Tue Feb 20 02:49:08 2007 UTC revision 1044 by gross, Mon Mar 19 07:29:31 2007 UTC
# Line 13  from esys.finley import Rectangle Line 13  from esys.finley import Rectangle
13  import sys  import sys
14  import os  import os
15  from test_objects import Test_Dump as Test_Dump  from test_objects import Test_Dump as Test_Dump
16    from test_objects import Test_Domain as Test_Domain
17    
18  try:  try:
19       FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']       FINLEY_WORKDIR=os.environ['FINLEY_WORKDIR']
# Line 21  except KeyError: Line 22  except KeyError:
22    
23    
24  NE=4 # number elements, must be even  NE=4 # number elements, must be even
25    class Test_DomainOnFinley(Test_Domain):
26       def setUp(self):
27           self.domain =Rectangle(NE,NE+1,2)
28       def tearDown(self):
29           del self.domain
30  class Test_DumpOnFinley(Test_Dump):  class Test_DumpOnFinley(Test_Dump):
31     def setUp(self):     def setUp(self):
32         self.domain =Rectangle(NE,NE+1,2)         self.domain =Rectangle(NE,NE+1,2)
# Line 38  class Test_DumpOnFinley(Test_Dump): Line 44  class Test_DumpOnFinley(Test_Dump):
44  if __name__ == '__main__':  if __name__ == '__main__':
45     suite = unittest.TestSuite()     suite = unittest.TestSuite()
46     suite.addTest(unittest.makeSuite(Test_DumpOnFinley))     suite.addTest(unittest.makeSuite(Test_DumpOnFinley))
47       suite.addTest(unittest.makeSuite(Test_DomainOnFinley))
48     s=unittest.TextTestRunner(verbosity=2).run(suite)     s=unittest.TextTestRunner(verbosity=2).run(suite)
49     if s.wasSuccessful():     if s.wasSuccessful():
50       sys.exit(0)       sys.exit(0)

Legend:
Removed from v.1043  
changed lines
  Added in v.1044

  ViewVC Help
Powered by ViewVC 1.1.26