aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/TestSuite/pCampBot.cs
diff options
context:
space:
mode:
authorSean Dague2008-03-11 20:15:07 +0000
committerSean Dague2008-03-11 20:15:07 +0000
commit1dfa382e44bdb386136d84f3d7f67cfdb080fe16 (patch)
treece475a47fce503d56fc031d961c71054ee65b3e1 /OpenSim/TestSuite/pCampBot.cs
parent* Temporarily disabling sending of ImageNotInDatabasePacket when a texture is... (diff)
downloadopensim-SC_OLD-1dfa382e44bdb386136d84f3d7f67cfdb080fe16.zip
opensim-SC_OLD-1dfa382e44bdb386136d84f3d7f67cfdb080fe16.tar.gz
opensim-SC_OLD-1dfa382e44bdb386136d84f3d7f67cfdb080fe16.tar.bz2
opensim-SC_OLD-1dfa382e44bdb386136d84f3d7f67cfdb080fe16.tar.xz
moving everything into OpenSim.TestSuite namespace
Diffstat (limited to '')
-rw-r--r--OpenSim/TestSuite/Main.cs (renamed from OpenSim/TestSuite/pCampBot.cs)29
1 files changed, 10 insertions, 19 deletions
diff --git a/OpenSim/TestSuite/pCampBot.cs b/OpenSim/TestSuite/Main.cs
index d42d4bd..c2cd7a1 100644
--- a/OpenSim/TestSuite/pCampBot.cs
+++ b/OpenSim/TestSuite/Main.cs
@@ -37,7 +37,7 @@ using log4net.Config;
37using System.Threading; 37using System.Threading;
38using OpenSim.Framework.Console; 38using OpenSim.Framework.Console;
39 39
40namespace pCampBot 40namespace OpenSim.TestSuite
41{ 41{
42 /// <summary> 42 /// <summary>
43 /// Event Types from the BOT. Add new events here 43 /// Event Types from the BOT. Add new events here
@@ -49,17 +49,16 @@ namespace pCampBot
49 DISCONNECTED = 2 49 DISCONNECTED = 2
50 } 50 }
51 51
52 public class pCampBot 52 public class TestSuite
53 { 53 {
54
55 private static readonly ILog m_log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
56
57 [STAThread]
58 public static void Main(string[] args) 54 public static void Main(string[] args)
59 { 55 {
60 // log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 56
61 // log4net call 57 // TODO: config parser
62 // BasicConfigurator.Configure(); 58
59 // TODO: load tests from addings
60
61 // TODO: create base bot cloud for use in tests
63 62
64 IConfig config = ParseConfig(args); 63 IConfig config = ParseConfig(args);
65 if (config.Get("help") != null || config.Get("loginuri") == null) { 64 if (config.Get("help") != null || config.Get("loginuri") == null) {
@@ -67,17 +66,9 @@ namespace pCampBot
67 } else { 66 } else {
68 int botcount = config.GetInt("botcount", 1); 67 int botcount = config.GetInt("botcount", 1);
69 68
70 BotManager bm = new BotManager(); 69 // BotManager bm = new BotManager();
71 70
72 System.Console.WriteLine("Error enabled: {0}", m_log.IsErrorEnabled); 71 Utils.TestPass("Completed Startup");
73 //startup specified number of bots. 1 is the default
74 m_log.Error("pCampBot started with " + botcount + "bots");
75
76// bm.dobotStartup(botcount, config);
77// while (true)
78// {
79// MainConsole.Instance.Prompt();
80// }
81 } 72 }
82 } 73 }
83 74