aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
authoronefang2021-08-26 06:21:19 +1000
committeronefang2021-08-26 06:21:19 +1000
commitcdfbb899f1112dab44d5490838765e9bd73bc60e (patch)
tree52cddd0b76e7ad8544a0ada533f91bb5fc402025 /OpenSim/Tests
parentStill failing to reconnect for dbCount(), just set the fucking timeout to a y... (diff)
parentDon't strip (OWNER) out of script error report. (diff)
downloadopensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.zip
opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.tar.gz
opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.tar.bz2
opensim-SC-cdfbb899f1112dab44d5490838765e9bd73bc60e.tar.xz
Merge branch 'switch' into Domme.
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r--OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs2
-rw-r--r--OpenSim/Tests/Common/Mock/MockScriptEngine.cs5
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs36
-rw-r--r--OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs15
-rw-r--r--OpenSim/Tests/Common/Mock/TestLandChannel.cs4
-rw-r--r--OpenSim/Tests/Common/Mock/TestOSHttpResponse.cs2
-rw-r--r--OpenSim/Tests/ConfigurationLoaderTest.cs1
-rw-r--r--OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs2
-rw-r--r--OpenSim/Tests/Robust/Server/DemonServer.cs4
9 files changed, 50 insertions, 21 deletions
diff --git a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
index a73a0b8..8379b0a 100644
--- a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
@@ -337,7 +337,7 @@ namespace OpenSim.Data.Null
337 337
338 public void StoreTerrain(double[,] ter, UUID regionID) 338 public void StoreTerrain(double[,] ter, UUID regionID)
339 { 339 {
340 m_terrains[regionID] = new HeightmapTerrainData(ter); 340 m_terrains[regionID] = new TerrainData(ter);
341 } 341 }
342 342
343 public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ) 343 public TerrainData LoadTerrain(UUID regionID, int pSizeX, int pSizeY, int pSizeZ)
diff --git a/OpenSim/Tests/Common/Mock/MockScriptEngine.cs b/OpenSim/Tests/Common/Mock/MockScriptEngine.cs
index 9d426f6..237d7a5 100644
--- a/OpenSim/Tests/Common/Mock/MockScriptEngine.cs
+++ b/OpenSim/Tests/Common/Mock/MockScriptEngine.cs
@@ -109,6 +109,11 @@ namespace OpenSim.Tests.Common
109 throw new System.NotImplementedException (); 109 throw new System.NotImplementedException ();
110 } 110 }
111 111
112 public void CancelScriptEvent(UUID itemID, string eventName)
113 {
114
115 }
116
112 public bool PostScriptEvent(UUID itemID, string name, object[] args) 117 public bool PostScriptEvent(UUID itemID, string name, object[] args)
113 { 118 {
114// Console.WriteLine("Posting event {0} for {1}", name, itemID); 119// Console.WriteLine("Posting event {0} for {1}", name, itemID);
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 449716b..929fa4a 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -343,6 +343,8 @@ namespace OpenSim.Tests.Common
343 public event GodlikeMessage onGodlikeMessage; 343 public event GodlikeMessage onGodlikeMessage;
344 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; 344 public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate;
345 public event GenericCall2 OnUpdateThrottles; 345 public event GenericCall2 OnUpdateThrottles;
346 public event AgentFOV OnAgentFOV;
347
346#pragma warning restore 67 348#pragma warning restore 67
347 349
348 /// <value> 350 /// <value>
@@ -352,6 +354,8 @@ namespace OpenSim.Tests.Common
352 354
353 public ISceneAgent SceneAgent { get; set; } 355 public ISceneAgent SceneAgent { get; set; }
354 356
357 public bool SupportObjectAnimations { get; set; }
358
355 /// <value> 359 /// <value>
356 /// The last caps seed url that this client was given. 360 /// The last caps seed url that this client was given.
357 /// </value> 361 /// </value>
@@ -365,6 +369,8 @@ namespace OpenSim.Tests.Common
365 set { } 369 set { }
366 } 370 }
367 371
372 public float StartFar { get; set; }
373
368 public virtual UUID AgentId 374 public virtual UUID AgentId
369 { 375 {
370 get { return m_agentId; } 376 get { return m_agentId; }
@@ -439,6 +445,7 @@ namespace OpenSim.Tests.Common
439 public virtual int NextAnimationSequenceNumber 445 public virtual int NextAnimationSequenceNumber
440 { 446 {
441 get { return 1; } 447 get { return 1; }
448 set { }
442 } 449 }
443 450
444 public IScene Scene 451 public IScene Scene
@@ -446,6 +453,11 @@ namespace OpenSim.Tests.Common
446 get { return m_scene; } 453 get { return m_scene; }
447 } 454 }
448 455
456 public UUID ScopeId
457 {
458 get { return UUID.Zero; }
459 }
460
449 public bool SendLogoutPacketWhenClosing 461 public bool SendLogoutPacketWhenClosing
450 { 462 {
451 set { } 463 set { }
@@ -558,7 +570,7 @@ namespace OpenSim.Tests.Common
558 { 570 {
559 } 571 }
560 572
561 public virtual void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry) 573 public virtual void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry, float hover)
562 { 574 {
563 } 575 }
564 576
@@ -571,10 +583,6 @@ namespace OpenSim.Tests.Common
571 { 583 {
572 } 584 }
573 585
574 public virtual void SendStartPingCheck(byte seq)
575 {
576 }
577
578 public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data) 586 public virtual void SendAvatarPickerReply(AvatarPickerReplyAgentDataArgs AgentData, List<AvatarPickerReplyDataArgs> Data)
579 { 587 {
580 } 588 }
@@ -648,14 +656,11 @@ namespace OpenSim.Tests.Common
648 return false; 656 return false;
649 } 657 }
650 658
651 public virtual void SendLayerData(float[] map) 659 public virtual void SendLayerData()
652 { 660 {
653 } 661 }
654 662
655 public virtual void SendLayerData(int px, int py, float[] map) 663 public void SendLayerData(int[] map)
656 {
657 }
658 public virtual void SendLayerData(int px, int py, float[] map, bool track)
659 { 664 {
660 } 665 }
661 666
@@ -819,7 +824,8 @@ namespace OpenSim.Tests.Common
819 { 824 {
820 } 825 }
821 826
822 public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory) 827 public virtual void SendXferPacket(ulong xferID, uint packet,
828 byte[] XferData, int XferDataOffset, int XferDatapktLen, bool isTaskInventory)
823 { 829 {
824 } 830 }
825 831
@@ -878,7 +884,7 @@ namespace OpenSim.Tests.Common
878 { 884 {
879 } 885 }
880 886
881 public virtual void SendRegionHandshake(RegionInfo regionInfo, RegionHandshakeArgs args) 887 public virtual void SendRegionHandshake()
882 { 888 {
883 if (OnRegionHandShakeReply != null) 889 if (OnRegionHandShakeReply != null)
884 { 890 {
@@ -1399,5 +1405,11 @@ namespace OpenSim.Tests.Common
1399 public void SendPartPhysicsProprieties(ISceneEntity entity) 1405 public void SendPartPhysicsProprieties(ISceneEntity entity)
1400 { 1406 {
1401 } 1407 }
1408
1409 public uint GetViewerCaps()
1410 {
1411 return 0x1000;
1412 }
1413
1402 } 1414 }
1403} 1415}
diff --git a/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs b/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs
index f2ce064..b17425a 100644
--- a/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs
+++ b/OpenSim/Tests/Common/Mock/TestEventQueueGetModule.cs
@@ -30,6 +30,7 @@ using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Net; 31using System.Net;
32using System.Reflection; 32using System.Reflection;
33using System.Text;
33using System.Threading; 34using System.Threading;
34using log4net; 35using log4net;
35using Nini.Config; 36using Nini.Config;
@@ -167,7 +168,7 @@ namespace OpenSim.Tests.Common
167 AddEvent(receiverAgent, "AgentGroupDataUpdate", data); 168 AddEvent(receiverAgent, "AgentGroupDataUpdate", data);
168 } 169 }
169 170
170 public OSD ScriptRunningEvent (UUID objectID, UUID itemID, bool running, bool mono) 171 public void ScriptRunningEvent (UUID objectID, UUID itemID, bool running, UUID avatarID)
171 { 172 {
172 Console.WriteLine("ONE"); 173 Console.WriteLine("ONE");
173 throw new System.NotImplementedException (); 174 throw new System.NotImplementedException ();
@@ -183,5 +184,15 @@ namespace OpenSim.Tests.Common
183 { 184 {
184 AddEvent(avatarID, "partPhysicsProperties", localID, physhapetype, density, friction, bounce, gravmod); 185 AddEvent(avatarID, "partPhysicsProperties", localID, physhapetype, density, friction, bounce, gravmod);
185 } 186 }
186 } 187
188 public StringBuilder StartEvent(string eventName)
189 {
190 return null;
191 }
192
193 public string EndEvent(StringBuilder sb)
194 {
195 return "";
196 }
197}
187} \ No newline at end of file 198} \ No newline at end of file
diff --git a/OpenSim/Tests/Common/Mock/TestLandChannel.cs b/OpenSim/Tests/Common/Mock/TestLandChannel.cs
index 05db03fe..b5227aa 100644
--- a/OpenSim/Tests/Common/Mock/TestLandChannel.cs
+++ b/OpenSim/Tests/Common/Mock/TestLandChannel.cs
@@ -42,6 +42,8 @@ namespace OpenSim.Tests.Common
42 private Scene m_scene; 42 private Scene m_scene;
43 private List<ILandObject> m_parcels; 43 private List<ILandObject> m_parcels;
44 44
45 public float BanLineSafeHeight { get { return 100f; } }
46
45 public TestLandChannel(Scene scene) 47 public TestLandChannel(Scene scene)
46 { 48 {
47 m_scene = scene; 49 m_scene = scene;
@@ -117,6 +119,6 @@ namespace OpenSim.Tests.Common
117 119
118 public void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {} 120 public void Join(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {}
119 public void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {} 121 public void Subdivide(int start_x, int start_y, int end_x, int end_y, UUID attempting_user_id) {}
120 public void sendClientInitialLandInfo(IClientAPI remoteClient) { } 122 public void sendClientInitialLandInfo(IClientAPI remoteClient, bool overlay) { }
121 } 123 }
122} \ No newline at end of file 124} \ No newline at end of file
diff --git a/OpenSim/Tests/Common/Mock/TestOSHttpResponse.cs b/OpenSim/Tests/Common/Mock/TestOSHttpResponse.cs
index 2e17f1e..4577ca3 100644
--- a/OpenSim/Tests/Common/Mock/TestOSHttpResponse.cs
+++ b/OpenSim/Tests/Common/Mock/TestOSHttpResponse.cs
@@ -117,8 +117,6 @@ namespace OpenSim.Tests.Common
117 /// </summary> 117 /// </summary>
118 public string StatusDescription { get; set; } 118 public string StatusDescription { get; set; }
119 119
120 public bool ReuseContext { get; set; }
121
122 /// <summary> 120 /// <summary>
123 /// Add a header field and content to the response. 121 /// Add a header field and content to the response.
124 /// </summary> 122 /// </summary>
diff --git a/OpenSim/Tests/ConfigurationLoaderTest.cs b/OpenSim/Tests/ConfigurationLoaderTest.cs
index a409a13..2a67b84 100644
--- a/OpenSim/Tests/ConfigurationLoaderTest.cs
+++ b/OpenSim/Tests/ConfigurationLoaderTest.cs
@@ -114,6 +114,7 @@ namespace OpenSim.Tests
114 IConfigSource argvSource = new IniConfigSource(); 114 IConfigSource argvSource = new IniConfigSource();
115 EnvConfigSource envConfigSource = new EnvConfigSource(); 115 EnvConfigSource envConfigSource = new EnvConfigSource();
116 argvSource.AddConfig("Startup").Set("inifile", mainIniFile); 116 argvSource.AddConfig("Startup").Set("inifile", mainIniFile);
117 argvSource.AddConfig("Network");
117 ConfigSettings configSettings; 118 ConfigSettings configSettings;
118 NetworkServersInfo networkInfo; 119 NetworkServersInfo networkInfo;
119 120
diff --git a/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs b/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs
index 8f312eb..4eba7b9 100644
--- a/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs
+++ b/OpenSim/Tests/Robust/Clients/InstantMessage/IMClient.cs
@@ -50,7 +50,7 @@ namespace Robust.Tests
50 im.message = "Hello"; 50 im.message = "Hello";
51 im.imSessionID = new Guid(); 51 im.imSessionID = new Guid();
52 52
53 bool success = InstantMessageServiceConnector.SendInstantMessage(DemonServer.Address, im); 53 bool success = InstantMessageServiceConnector.SendInstantMessage(DemonServer.Address, im, String.Empty);
54 Assert.IsFalse(success, "Sending of IM succeeded, but it should have failed"); 54 Assert.IsFalse(success, "Sending of IM succeeded, but it should have failed");
55 } 55 }
56 56
diff --git a/OpenSim/Tests/Robust/Server/DemonServer.cs b/OpenSim/Tests/Robust/Server/DemonServer.cs
index 41c2185..fa0c958 100644
--- a/OpenSim/Tests/Robust/Server/DemonServer.cs
+++ b/OpenSim/Tests/Robust/Server/DemonServer.cs
@@ -48,8 +48,8 @@ namespace Robust.Tests
48 [SetUp] 48 [SetUp]
49 public void StartDemon() 49 public void StartDemon()
50 { 50 {
51 if (File.Exists("../../logs/Robust.Tests.log")) 51 if (File.Exists("../../var/log/Robust.Tests.log"))
52 File.Delete("../../logs/Robust.Tests.log"); 52 File.Delete("../../var/log/Robust.Tests.log");
53 53
54 Console.WriteLine("**** Starting demon Robust server ****"); 54 Console.WriteLine("**** Starting demon Robust server ****");
55 m_demon = new Thread( () => Main(new string[] {"-inifile=Robust.Tests.ini"})); 55 m_demon = new Thread( () => Main(new string[] {"-inifile=Robust.Tests.ini"}));