""" Run all examples and then compare to gallery versions, if available. """ from clawpack.clawutil import regression_tests, make_all make_all.make_all(make_clean_first=True) print "\n-----------------------------------------------------------\n" all_ok = regression_tests.test_subdirs() if all_ok: print "===> All tests pass" else: print "===> Some test(s) failed"
""" Run all examples and then compare to gallery versions, if available. """ from clawpack.clawutil import regression_tests, make_all import os env = os.environ env['GIT_STATUS'] = 'True' env['FFLAGS'] = '-O2 -fopenmp' env['OMP_NUM_THREADS'] = '3' make_all.make_all(make_clean_first=True, env=env) print "\n-----------------------------------------------------------\n" all_ok = regression_tests.test_subdirs() if all_ok: print "===> All tests pass" else: print "===> Some test(s) failed"
import os try: CLAW = os.environ['CLAW'] except: raise Exception("Need to set CLAW environment variable") os.environ['GIT_STATUS'] = 'True' os.environ['CLAW_TOPO_DOWNLOAD'] = 'True' # to test: #examples_dir = CLAW + '/amrclaw/ex2' #make_all.make_all(examples_dir) if 1: examples_dir = CLAW + '/classic/examples' make_all.make_all(examples_dir) if 0: examples_dir = CLAW + '/amrclaw/examples' make_all.make_all(examples_dir) if 0: examples_dir = CLAW + '/geoclaw/examples' make_all.make_all(examples_dir) if 0: examples_dir = CLAW + '/apps/fvmbook' make_all.make_all(examples_dir)