diff options
Diffstat (limited to 'rt/lib/RT/TestHarness.pm')
-rw-r--r-- | rt/lib/RT/TestHarness.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rt/lib/RT/TestHarness.pm b/rt/lib/RT/TestHarness.pm new file mode 100644 index 000000000..160e9e636 --- /dev/null +++ b/rt/lib/RT/TestHarness.pm @@ -0,0 +1,14 @@ +use lib "/opt/rt2/etc/"; + +use RT::Interface::CLI qw(CleanEnv LoadConfig DBConnect + GetCurrentUser GetMessageContent); + +#Clean out all the nasties from the environment +CleanEnv(); + +#Load etc/config.pm and drop privs +LoadConfig(); + + +use RT; +RT::Init; |