mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
change ossl tests setup
This commit is contained in:
@@ -64,11 +64,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||
IConfigSource initConfigSource = new IniConfigSource();
|
||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||
config.Set("Enabled", "true");
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
config = initConfigSource.AddConfig("NPC");
|
||||
config.Set("Enabled", "true");
|
||||
|
||||
config = initConfigSource.AddConfig("OSSL");
|
||||
config.Set("DebuggerSafe", false);
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
|
||||
m_scene = new SceneHelpers().SetupScene();
|
||||
SceneHelpers.SetupSceneModules(m_scene, initConfigSource, new AvatarFactoryModule(), new NPCModule());
|
||||
|
||||
|
||||
@@ -71,6 +71,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||
xengineConfig.Set("AllowOSFunctions", "true");
|
||||
xengineConfig.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
IConfig oconfig = initConfigSource.AddConfig("OSSL");
|
||||
oconfig.Set("DebuggerSafe", false);
|
||||
oconfig.Set("Enabled", "true");
|
||||
oconfig.Set("AllowOSFunctions", "true");
|
||||
oconfig.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
IConfig modulesConfig = initConfigSource.AddConfig("Modules");
|
||||
modulesConfig.Set("InventoryAccessModule", "BasicInventoryAccessModule");
|
||||
|
||||
|
||||
@@ -66,11 +66,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||
IConfigSource initConfigSource = new IniConfigSource();
|
||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||
config.Set("Enabled", "true");
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
config = initConfigSource.AddConfig("NPC");
|
||||
config.Set("Enabled", "true");
|
||||
|
||||
config = initConfigSource.AddConfig("OSSL");
|
||||
config.Set("DebuggerSafe", false);
|
||||
config.Set("AllowOSFunctions", "true");
|
||||
config.Set("OSFunctionThreatLevel", "Severe");
|
||||
|
||||
m_scene = new SceneHelpers().SetupScene();
|
||||
SceneHelpers.SetupSceneModules(
|
||||
m_scene, initConfigSource, new AvatarFactoryModule(), new AttachmentsModule(), new NPCModule());
|
||||
|
||||
Reference in New Issue
Block a user