* Moved the DatabaseTestAttribute to Test.Common, and thus included ref to that in all db tests. *phew*

0.6.5-rc1
lbsa71 2009-04-09 16:40:02 +00:00
parent f44694c28e
commit 5572a00295
38 changed files with 67 additions and 6 deletions

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.MySQL.Tests namespace OpenSim.Data.MySQL.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.MySQL.Tests namespace OpenSim.Data.MySQL.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.MySQL.Tests namespace OpenSim.Data.MySQL.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.MySQL.Tests namespace OpenSim.Data.MySQL.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.MySQL.Tests namespace OpenSim.Data.MySQL.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.MySQL.Tests namespace OpenSim.Data.MySQL.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -30,6 +30,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -31,6 +31,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -31,6 +31,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -31,6 +31,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -31,6 +31,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -31,6 +31,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -31,6 +31,7 @@ using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using log4net; using log4net;
using System.Reflection; using System.Reflection;
using OpenSim.Tests.Common;
namespace OpenSim.Data.NHibernate.Tests namespace OpenSim.Data.NHibernate.Tests
{ {

View File

@ -28,6 +28,7 @@
using System.IO; using System.IO;
using NUnit.Framework; using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using OpenSim.Tests.Common;
namespace OpenSim.Data.SQLite.Tests namespace OpenSim.Data.SQLite.Tests
{ {

View File

@ -28,6 +28,7 @@
using System.IO; using System.IO;
using NUnit.Framework; using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using OpenSim.Tests.Common;
namespace OpenSim.Data.SQLite.Tests namespace OpenSim.Data.SQLite.Tests
{ {

View File

@ -28,6 +28,7 @@
using System.IO; using System.IO;
using NUnit.Framework; using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using OpenSim.Tests.Common;
namespace OpenSim.Data.SQLite.Tests namespace OpenSim.Data.SQLite.Tests
{ {

View File

@ -28,6 +28,7 @@
using System.IO; using System.IO;
using NUnit.Framework; using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using OpenSim.Tests.Common;
namespace OpenSim.Data.SQLite.Tests namespace OpenSim.Data.SQLite.Tests
{ {

View File

@ -28,6 +28,7 @@
using System.IO; using System.IO;
using NUnit.Framework; using NUnit.Framework;
using OpenSim.Data.Tests; using OpenSim.Data.Tests;
using OpenSim.Tests.Common;
namespace OpenSim.Data.SQLite.Tests namespace OpenSim.Data.SQLite.Tests
{ {

View File

@ -3,12 +3,12 @@ using System.Collections.Generic;
using System.Text; using System.Text;
using NUnit.Framework; using NUnit.Framework;
namespace OpenSim.Data.Tests namespace OpenSim.Tests.Common
{ {
[AttributeUsage(AttributeTargets.All, [AttributeUsage(AttributeTargets.All,
AllowMultiple=false, AllowMultiple=false,
Inherited=true)] Inherited=true)]
public class DatabaseTestAttribute : CategoryAttribute public class DatabaseTestAttribute : LongRunningAttribute
{ {
public DatabaseTestAttribute() : base("Database") public DatabaseTestAttribute() : base("Database")
{ {

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
namespace OpenSim.Tests.Common
{
[AttributeUsage(AttributeTargets.All,
AllowMultiple = false,
Inherited = true)]
public class LongRunningAttribute : CategoryAttribute
{
protected LongRunningAttribute() : this("Long Running Test")
{
}
protected LongRunningAttribute(string category) : base(category)
{
}
}
}

View File

@ -2844,6 +2844,7 @@
<Reference name="OpenMetaverseTypes.dll"/> <Reference name="OpenMetaverseTypes.dll"/>
<Reference name="OpenMetaverse.dll"/> <Reference name="OpenMetaverse.dll"/>
<Reference name="MySql.Data.dll"/> <Reference name="MySql.Data.dll"/>
<Reference name="OpenSim.Tests.Common"/>
<Reference name="OpenSim.Data.Tests"/> <Reference name="OpenSim.Data.Tests"/>
<Reference name="OpenSim.Data.MySQL"/> <Reference name="OpenSim.Data.MySQL"/>
<Reference name="OpenSim.Framework.Console"/> <Reference name="OpenSim.Framework.Console"/>
@ -2878,6 +2879,7 @@
<Reference name="OpenSim.Data"/> <Reference name="OpenSim.Data"/>
<Reference name="OpenSim.Data.NHibernate"/> <Reference name="OpenSim.Data.NHibernate"/>
<Reference name="OpenSim.Data.Tests"/> <Reference name="OpenSim.Data.Tests"/>
<Reference name="OpenSim.Tests.Common"/>
<Reference name="OpenSim.Framework.Console"/> <Reference name="OpenSim.Framework.Console"/>
<Reference name="OpenSim.Region.Framework"/> <Reference name="OpenSim.Region.Framework"/>
<Reference name="OpenMetaverseTypes.dll"/> <Reference name="OpenMetaverseTypes.dll"/>
@ -2914,6 +2916,7 @@
<Reference name="System.Data.SQLite.dll"/> <Reference name="System.Data.SQLite.dll"/>
<Reference name="OpenSim.Data"/> <Reference name="OpenSim.Data"/>
<Reference name="OpenSim.Data.Tests"/> <Reference name="OpenSim.Data.Tests"/>
<Reference name="OpenSim.Tests.Common"/>
<Reference name="OpenSim.Data.SQLite" /> <Reference name="OpenSim.Data.SQLite" />
<Reference name="System.Drawing"/> <Reference name="System.Drawing"/>
<Reference name="OpenSim.Framework"/> <Reference name="OpenSim.Framework"/>
@ -2947,6 +2950,7 @@
<Reference name="System"/> <Reference name="System"/>
<Reference name="System.Xml"/> <Reference name="System.Xml"/>
<Reference name="System.Data"/> <Reference name="System.Data"/>
<Reference name="OpenMetaverse.dll"/>
<Reference name="OpenMetaverseTypes.dll"/> <Reference name="OpenMetaverseTypes.dll"/>
<Reference name="XMLRPC.dll"/> <Reference name="XMLRPC.dll"/>
<Reference name="OpenSim.Framework.Console"/> <Reference name="OpenSim.Framework.Console"/>