parent
5fb7b485b2
commit
7ac264c2f0
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NUnit.Framework.SyntaxHelpers;
|
using NUnit.Framework.SyntaxHelpers;
|
||||||
|
@ -40,14 +41,14 @@ namespace OpenSim.Data.SQLite.Tests
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SQLiteAssetTest : BasicAssetTest
|
public class SQLiteAssetTest : BasicAssetTest
|
||||||
{
|
{
|
||||||
public string file = "assettest.db";
|
public string file;
|
||||||
public string connect;
|
public string connect;
|
||||||
|
|
||||||
[TestFixtureSetUp]
|
[TestFixtureSetUp]
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
SuperInit();
|
SuperInit();
|
||||||
System.Console.WriteLine("SQLiteAssetTest");
|
file = Path.GetTempFileName() + ".db";
|
||||||
connect = "URI=file:" + file + ",version=3";
|
connect = "URI=file:" + file + ",version=3";
|
||||||
db = new SQLiteAssetData();
|
db = new SQLiteAssetData();
|
||||||
db.Initialise(connect);
|
db.Initialise(connect);
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NUnit.Framework.SyntaxHelpers;
|
using NUnit.Framework.SyntaxHelpers;
|
||||||
|
@ -41,7 +42,7 @@ namespace OpenSim.Data.SQLite.Tests
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SQLiteInventoryTest : BasicInventoryTest
|
public class SQLiteInventoryTest : BasicInventoryTest
|
||||||
{
|
{
|
||||||
public string file = "inventorytest.db";
|
public string file;
|
||||||
public string connect;
|
public string connect;
|
||||||
|
|
||||||
[TestFixtureSetUp]
|
[TestFixtureSetUp]
|
||||||
|
@ -56,7 +57,10 @@ namespace OpenSim.Data.SQLite.Tests
|
||||||
{
|
{
|
||||||
// I don't care, just leave log4net off
|
// I don't care, just leave log4net off
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file = Path.GetTempFileName() + ".db";
|
||||||
connect = "URI=file:" + file + ",version=3";
|
connect = "URI=file:" + file + ",version=3";
|
||||||
|
|
||||||
db = new SQLiteInventoryStore();
|
db = new SQLiteInventoryStore();
|
||||||
db.Initialise(connect);
|
db.Initialise(connect);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NUnit.Framework.SyntaxHelpers;
|
using NUnit.Framework.SyntaxHelpers;
|
||||||
|
@ -47,6 +48,7 @@ namespace OpenSim.Data.SQLite.Tests
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
SuperInit();
|
SuperInit();
|
||||||
|
file = Path.GetTempFileName() + ".db";
|
||||||
connect = "URI=file:" + file + ",version=3";
|
connect = "URI=file:" + file + ",version=3";
|
||||||
db = new SQLiteRegionData();
|
db = new SQLiteRegionData();
|
||||||
db.Initialise(connect);
|
db.Initialise(connect);
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NUnit.Framework.SyntaxHelpers;
|
using NUnit.Framework.SyntaxHelpers;
|
||||||
|
@ -40,13 +41,14 @@ namespace OpenSim.Data.SQLite.Tests
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class SQLiteUserTest : BasicUserTest
|
public class SQLiteUserTest : BasicUserTest
|
||||||
{
|
{
|
||||||
public string file = "usertest.db";
|
public string file;
|
||||||
public string connect;
|
public string connect;
|
||||||
|
|
||||||
[TestFixtureSetUp]
|
[TestFixtureSetUp]
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
SuperInit();
|
SuperInit();
|
||||||
|
file = Path.GetTempFileName() + ".db";
|
||||||
connect = "URI=file:" + file + ",version=3";
|
connect = "URI=file:" + file + ",version=3";
|
||||||
db = new SQLiteUserData();
|
db = new SQLiteUserData();
|
||||||
db.Initialise(connect);
|
db.Initialise(connect);
|
||||||
|
|
Loading…
Reference in New Issue