diff options
author | Justin Clark-Casey (justincc) | 2010-12-14 22:25:01 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-12-14 22:25:01 +0000 |
commit | c620e4c8228d275cfe9659d55ca9ec0c2d7c1b1a (patch) | |
tree | 15e975ee1980393e77740306b6d5fc9111cb4d6b | |
parent | Made the map thread request the map items asynchronously, as the name suggest... (diff) | |
download | opensim-SC_OLD-c620e4c8228d275cfe9659d55ca9ec0c2d7c1b1a.zip opensim-SC_OLD-c620e4c8228d275cfe9659d55ca9ec0c2d7c1b1a.tar.gz opensim-SC_OLD-c620e4c8228d275cfe9659d55ca9ec0c2d7c1b1a.tar.bz2 opensim-SC_OLD-c620e4c8228d275cfe9659d55ca9ec0c2d7c1b1a.tar.xz |
add infrastructure for groups module tests
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs | 54 | ||||
-rw-r--r-- | prebuild.xml | 56 |
2 files changed, 110 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs new file mode 100644 index 0000000..f9a736f --- /dev/null +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/Tests/GroupsModuleTests.cs | |||
@@ -0,0 +1,54 @@ | |||
1 | /* | ||
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSimulator Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
28 | using System; | ||
29 | using System.Reflection; | ||
30 | using NUnit.Framework; | ||
31 | using NUnit.Framework.SyntaxHelpers; | ||
32 | using OpenMetaverse; | ||
33 | using OpenSim.Framework; | ||
34 | using OpenSim.Framework.Communications; | ||
35 | using OpenSim.Region.Framework.Scenes; | ||
36 | using OpenSim.Tests.Common; | ||
37 | using OpenSim.Tests.Common.Mock; | ||
38 | using OpenSim.Tests.Common.Setup; | ||
39 | |||
40 | namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups.Tests | ||
41 | { | ||
42 | /// <summary> | ||
43 | /// Basic groups module tests | ||
44 | /// </summary> | ||
45 | [TestFixture] | ||
46 | public class GroupsModuleTests | ||
47 | { | ||
48 | [Test] | ||
49 | public void TestBasic() | ||
50 | { | ||
51 | TestHelper.InMethod(); | ||
52 | } | ||
53 | } | ||
54 | } \ No newline at end of file | ||
diff --git a/prebuild.xml b/prebuild.xml index 9f2ef43..044770a 100644 --- a/prebuild.xml +++ b/prebuild.xml | |||
@@ -2974,6 +2974,62 @@ | |||
2974 | </Files> | 2974 | </Files> |
2975 | </Project> | 2975 | </Project> |
2976 | 2976 | ||
2977 | <Project frameworkVersion="v3_5" name="OpenSim.Region.OptionalModules.Tests" path="OpenSim/Region/OptionalModules" type="Library"> | ||
2978 | <Configuration name="Debug"> | ||
2979 | <Options> | ||
2980 | <OutputPath>../../../bin/</OutputPath> | ||
2981 | </Options> | ||
2982 | </Configuration> | ||
2983 | <Configuration name="Release"> | ||
2984 | <Options> | ||
2985 | <OutputPath>../../../bin/</OutputPath> | ||
2986 | </Options> | ||
2987 | </Configuration> | ||
2988 | |||
2989 | <ReferencePath>../../../bin/</ReferencePath> | ||
2990 | <Reference name="System"/> | ||
2991 | <Reference name="System.Core"/> | ||
2992 | <Reference name="System.Xml"/> | ||
2993 | <Reference name="System.Drawing"/> | ||
2994 | <Reference name="OpenMetaverseTypes" path="../../../bin/"/> | ||
2995 | <Reference name="OpenMetaverse" path="../../../bin/"/> | ||
2996 | <Reference name="OpenSim.Data"/> | ||
2997 | <Reference name="OpenSim.Framework"/> | ||
2998 | <Reference name="OpenSim.Framework.Serialization"/> | ||
2999 | <Reference name="OpenSim.Framework.Communications"/> | ||
3000 | <Reference name="OpenSim.Framework.Console"/> | ||
3001 | <Reference name="OpenSim.Framework.Servers"/> | ||
3002 | <Reference name="OpenSim.Framework.Servers.HttpServer"/> | ||
3003 | <Reference name="OpenSim.Framework.Statistics"/> | ||
3004 | <Reference name="OpenSim.Region.Framework"/> | ||
3005 | <Reference name="OpenSim.Region.CoreModules"/> | ||
3006 | <Reference name="OpenSim.Region.Physics.Manager"/> | ||
3007 | <Reference name="OpenSim.Services.Interfaces"/> | ||
3008 | |||
3009 | <!-- Unit tests --> | ||
3010 | <Reference name="OpenSim.Tests.Common"/> | ||
3011 | <Reference name="Nini" path="../../../bin/"/> | ||
3012 | <Reference name="nunit.framework" path="../../../bin/"/> | ||
3013 | |||
3014 | <!-- For scripting in funny languages by default --> | ||
3015 | <Reference name="XMLRPC" path="../../../bin/"/> | ||
3016 | <Reference name="OpenSim.Framework.Communications"/> | ||
3017 | <Reference name="Nini" path="../../../bin/"/> | ||
3018 | <Reference name="log4net" path="../../../bin/"/> | ||
3019 | <Reference name="DotNetOpenMail" path="../../../bin/"/> | ||
3020 | |||
3021 | <!-- | ||
3022 | TODO: this is kind of lame, we basically build a duplicate | ||
3023 | assembly but with tests added in, just so that we don't | ||
3024 | need to hard code in a bunch of Test directories here. If | ||
3025 | pattern="Tests/*.cs" worked, we wouldn't need this. | ||
3026 | --> | ||
3027 | <Files> | ||
3028 | <!-- SADLY the way this works means you need to keep adding these paths --> | ||
3029 | <Match path="Avatar/XmlRpcGroups/Tests" pattern="*.cs" recurse="true"/> | ||
3030 | </Files> | ||
3031 | </Project> | ||
3032 | |||
2977 | <Project frameworkVersion="v3_5" name="OpenSim.Region.Framework.Tests" path="OpenSim/Region/Framework" type="Library"> | 3033 | <Project frameworkVersion="v3_5" name="OpenSim.Region.Framework.Tests" path="OpenSim/Region/Framework" type="Library"> |
2978 | <Configuration name="Debug"> | 3034 | <Configuration name="Debug"> |
2979 | <Options> | 3035 | <Options> |