https://github.com/pou036/redback
Tip revision: efa24ed9219e05cdf80e2b990a4288fe819babe5 authored by Stuart Walsh on 22 July 2016, 14:23:10 UTC
J2 TM benchmark works with user objects and thermal eigenstrains, took out some debugging comments
J2 TM benchmark works with user objects and thermal eigenstrains, took out some debugging comments
Tip revision: efa24ed
run_tests
#!/usr/bin/env python
import sys, os, inspect
# Set the current working directory to the directory where this script is located
os.chdir(os.path.abspath(os.path.dirname(sys.argv[0])))
#### Set the name of the application here and moose directory relative to the application
app_name = 'redback'
MOOSE_DIR = os.path.abspath(os.path.join('..', 'moose'))
#### See if MOOSE_DIR is already in the environment instead
if os.environ.has_key("MOOSE_DIR"):
MOOSE_DIR = os.environ['MOOSE_DIR']
sys.path.append(os.path.join(MOOSE_DIR, 'python'))
import path_tool
path_tool.activate_module('TestHarness')
from TestHarness import TestHarness
from Tester import Tester
# Run the tests!
#TestHarness.buildAndRun(sys.argv, app_name, MOOSE_DIR)
if '--store-timing' in sys.argv:
harness = TestTimer(sys.argv, app_name, MOOSE_DIR)
else:
harness = TestHarness(sys.argv, app_name, MOOSE_DIR)
harness.factory.loadPlugins([os.path.join(os.getcwd(), 'python/TestHarness')], 'testers', Tester)
harness.findAndRunTests()