mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
23 lines
735 B
Python
23 lines
735 B
Python
#!/usr/bin/env python
|
|
import sys, os
|
|
|
|
# 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 = 'stork'
|
|
|
|
MODULE_DIR = os.path.abspath('..')
|
|
MOOSE_DIR = os.path.abspath(os.path.join(MODULE_DIR, '..'))
|
|
#### 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)
|