https://github.com/pou036/redback
Raw File
Tip revision: 32d8b8bfdedb11138b5aab25cb4e05364bba3d0c authored by Jack Lin on 06 December 2015, 22:39:04 UTC
passing test 4 of moose_tests using command line: find . -name '*.[Chi]' -or -name '*.py' | xargs perl -pli -e 's/\s+$//'
Tip revision: 32d8b8b
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
# Run the tests!
TestHarness.buildAndRun(sys.argv, app_name, MOOSE_DIR)
back to top