1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
12 using System
.Diagnostics
;
13 using System
.Reflection
;
15 [assembly
: CLSCompliant(true)]
17 [assembly
: AssemblyTitle("IceTest")]
18 [assembly
: AssemblyDescription("Ice test")]
19 [assembly
: AssemblyCompany("ZeroC, Inc.")]
23 private static int run(string[] args
, Ice
.Communicator communicator
)
25 bool withDeploy
= false;
26 for(int i
= 0; i
< args
.Length
; i
++)
28 if(args
[i
].Equals("--with-deploy"))
37 AllTests
.allTests(communicator
);
41 AllTests
.allTestsWithDeploy(communicator
);
47 public static int Main(string[] args
)
50 Ice
.Communicator communicator
= null;
53 Debug
.Listeners
.Add(new ConsoleTraceListener());
58 communicator
= Ice
.Util
.initialize(ref args
);
59 status
= run(args
, communicator
);
61 catch (System
.Exception ex
)
63 System
.Console
.Error
.WriteLine(ex
);
67 if (communicator
!= null)
71 communicator
.destroy();
73 catch (Ice
.LocalException ex
)
75 System
.Console
.Error
.WriteLine(ex
);