aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorSean Dague2008-09-23 18:38:25 +0000
committerSean Dague2008-09-23 18:38:25 +0000
commit908f1bcbe23a92ff4e8c51013ead449fc843924a (patch)
tree29e6ed11983e919cca054170c353cdc0202f3f3f /OpenSim/Data
parentremove demofilter which apparently was added by something I did way in the pa... (diff)
downloadopensim-SC_OLD-908f1bcbe23a92ff4e8c51013ead449fc843924a.zip
opensim-SC_OLD-908f1bcbe23a92ff4e8c51013ead449fc843924a.tar.gz
opensim-SC_OLD-908f1bcbe23a92ff4e8c51013ead449fc843924a.tar.bz2
opensim-SC_OLD-908f1bcbe23a92ff4e8c51013ead449fc843924a.tar.xz
check in stubbing for mysql tests. This is ignored with
Assert.Ignore() for now, so it won't change anything, but I want to make sure it doesn't break the bamboo infrastructure in it's current state.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs b/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
new file mode 100644
index 0000000..0e63835
--- /dev/null
+++ b/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
@@ -0,0 +1,74 @@
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 OpenSim 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
28using System;
29using System.IO;
30using System.Collections.Generic;
31using NUnit.Framework;
32using NUnit.Framework.SyntaxHelpers;
33using OpenSim.Framework;
34using OpenSim.Data.Tests;
35using OpenSim.Data.MySQL;
36using OpenSim.Region.Environment.Scenes;
37using OpenMetaverse;
38using log4net;
39
40namespace OpenSim.Data.MySQL.Tests
41{
42 [TestFixture]
43 public class MySQLInventoryTest : BasicInventoryTest
44 {
45 public string file;
46 public string connect;
47
48 [TestFixtureSetUp]
49 public void Init()
50 {
51 SuperInit();
52 try
53 {
54 log4net.Config.XmlConfigurator.Configure();
55 }
56 catch (Exception)
57 {
58 // I don't care, just leave log4net off
59 }
60
61 Assert.Ignore();
62
63 file = Path.GetTempFileName() + ".db";
64 connect = "URI=file:" + file + ",version=3";
65
66 }
67
68 [TestFixtureTearDown]
69 public void Cleanup()
70 {
71 db.Dispose();
72 }
73 }
74}