Changeset 6609
- Timestamp:
- Mar 25, 2009, 8:45:13 AM (16 years ago)
- Location:
- anuga_validation/automated_validation_tests/patong_validation
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/patong_validation/project.py
r6528 r6609 36 36 37 37 use_buildings = True 38 setup = ' final' # This can be one of three values38 setup = 'trial' # This can be one of three values 39 39 # trial - coarsest mesh, fast 40 40 # basic - coarse mesh -
anuga_validation/automated_validation_tests/patong_validation/setup_model.py
r6528 r6609 97 97 98 98 if not exists(project.event_folder): 99 print "project.event_folder=%s" % project.event_folder 99 100 print ("Sorry, you must generate event %s with EventSelection." 100 101 % project.event_number) -
anuga_validation/automated_validation_tests/patong_validation/validate_patong.py
r6551 r6609 12 12 class Test_Patong(unittest.TestCase): 13 13 def setUp(self): 14 # Remove garbage15 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) 21 21 22 22 # Check that environment variables are defined. … … 31 31 raise Exception, msg 32 32 33 def tearDown(self): 34 # delete all output necessary 35 pass 36 33 37 def test_that_output_is_as_expected(self): 34 38 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) 36 43 assert res == 0 37 44 45 print 'About to run compare_output_with_expected.py' 38 46 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) 41 50 assert res == 0 42 51 … … 44 53 45 54 if __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.