mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user