2
* Copyright (C) 2009 Neil Loknath <neil.loknath@gmail.com>
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published
6
* by the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Lesser General Public License for more details.
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
* This program is free software: you can redistribute it and/or modify
17
* it under the terms of the GNU LesserGeneral Public License as published
18
* by the Free Software Foundation, either version 3 of the License, or
19
* (at your option) any later version.
32
Misc, MissionControl, DTube, FileTransfer
35
public static void Main(string[] args)
38
TestType type = TestType.Misc;
40
if (args.Length > 0) {
41
if (!args[0].StartsWith ("--")) {
46
if (args[0].Equals ("--misc")) type = TestType.Misc;
47
else if (args[0].Equals ("--missioncontrol")) type = TestType.MissionControl;
48
else if (args[0].Equals ("--dtube")) type = TestType.DTube;
49
else if (args[0].Equals ("--filetransfer")) type = TestType.FileTransfer;
57
string account = "jabber3";
58
string contact = "banshee_test1@jabber.org";
62
MiscTest t = new MiscTest ();
65
case TestType.MissionControl:
66
McTest mct = new McTest ();
71
if (args.Length > 2) {
75
else if (args.Length == 2) {
80
DTubeTest tube = new DTubeTest (account, contact);
83
case TestType.FileTransfer:
85
if (args.Length > 2) {
89
else if (args.Length == 2) {
94
FileTransfer ft = new FileTransfer (account, contact);
102
private static void DisplayUsage ()
104
string usage = "tests.exe [options]";
105
string options = "Valid options:\n --misc\n --missioncontrol\n --dtube [account]\n --filetransfer [account]";
107
Console.WriteLine (usage);
108
Console.WriteLine (options);
b'\\ No newline at end of file'