Added the beginning of a new test framework for robust connectors and services. For now, just Grid and Presence. This framework starts a robust server (as a thread) listening on a port in localhost, then the tests are client code.

This commit is contained in:
Diva Canto
2015-05-10 21:04:46 -07:00
parent 05737a1010
commit c2cf22ea4f
7 changed files with 862 additions and 2 deletions

View File

@@ -82,7 +82,9 @@ namespace OpenSim.Server.Base
argvConfig.AddSwitch("Startup", "logconfig", "g");
// Automagically create the ini file name
string fileName = Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location);
string fileName = "";
if (Assembly.GetEntryAssembly() != null)
fileName = Path.GetFileNameWithoutExtension(Assembly.GetEntryAssembly().Location);
string iniFile = fileName + ".ini";
string logConfig = null;
@@ -158,7 +160,11 @@ namespace OpenSim.Server.Base
MainConsole.Instance = new RemoteConsole(prompt);
((RemoteConsole)MainConsole.Instance).ReadConfig(Config);
}
else
else if (consoleType == "mock")
{
MainConsole.Instance = new MockConsole();
}
else if (consoleType == "local")
{
MainConsole.Instance = new LocalConsole(prompt, startupConfig);
}