Ignore:
Timestamp:
Mar 25, 2009, 8:45:13 AM (15 years ago)
Author:
rwilson
Message:

Get working in local mode only, no update from server.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/patong_validation/validate_patong.py

    r6551 r6609  
    1212class Test_Patong(unittest.TestCase):
    1313    def setUp(self):
    14         # Remove garbage
    15         for file in glob.glob('./*.stdout'):
    16             os.remove(file)
    17         for file in glob.glob('./*.sww'):
    18             os.remove(file)
    19         for file in glob.glob('./*.msh'):
    20             os.remove(file)
     14       
     15##        for file in glob.glob('./*.stdout'):
     16##            os.remove(file)
     17##        for file in glob.glob('./*.sww'):
     18##            os.remove(file)
     19##        for file in glob.glob('./*.msh'):
     20##            os.remove(file)
    2121
    2222        # Check that environment variables are defined.
     
    3131            raise Exception, msg
    3232
     33    def tearDown(self):
     34        # delete all output necessary
     35        pass
     36
    3337    def test_that_output_is_as_expected(self):
    3438        s = 'run_model.py'
    35         res = os.system('python %s > run_patong.stdout' % s)
     39        cmd = 'python %s > %s.stdout' % (s, s)
     40        print 'cmd=%s' % cmd
     41        res = os.system(cmd)
     42        print 'res=%s' % str(res)
    3643        assert res == 0
    3744
     45        print 'About to run compare_output_with_expected.py'
    3846        s = 'compare_output_with_expected.py'
    39         res = os.system('python %s > compare_output_with_expected.py.stdout'
    40                         % s)
     47        res = os.system('python %s > %s.stdout'
     48                        % (s, s))
     49        print 'Result from %s is %d' % (s, res)
    4150        assert res == 0
    4251
     
    4453
    4554if __name__ == "__main__":
    46     #suite = unittest.makeSuite(Test_Patong, 'test')
    47     #runner = unittest.TextTestRunner(verbosity=2)
    48     #runner.run(suite)
    49     pass
     55    suite = unittest.makeSuite(Test_Patong, 'test')
     56    runner = unittest.TextTestRunner(verbosity=2)
     57    runner.run(suite)
Note: See TracChangeset for help on using the changeset viewer.