summaryrefslogtreecommitdiff
path: root/testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-09-23 10:48:10 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-09-23 10:48:10 +0000
commitb9e6d19503ec26acea00e0da23530b105033a394 (patch)
tree155d2896260681fe831e82b74673bebb9bf348a4 /testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs
parente8980493f3ff1369ed7442d840cb36b36ae46cb1 (diff)
INTEGRATION: CWS jl16 (1.5.24); FILE MERGED
2005/04/21 08:56:55 jl 1.5.24.1: #i47674# adapted code for automatic test. There is now a folder qa in this project.
Diffstat (limited to 'testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs')
-rw-r--r--testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs32
1 files changed, 27 insertions, 5 deletions
diff --git a/testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs b/testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs
index a84b257ff47b..f68a851cf1ed 100644
--- a/testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs
+++ b/testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs
@@ -4,9 +4,9 @@
*
* $RCSfile: cli_bridgetest_inprocess.cs,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 12:23:10 $
+ * last change: $Author: hr $ $Date: 2005-09-23 11:48:09 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -93,12 +93,34 @@ public class BridgeTest
{
public static int Main( String [] args )
{
+// System.Diagnostics.Debugger.Launch();
try
- {
+ {
+ string bootstrap_ini = "cli_bridgetest_inprocess.ini";
+ if (args.Length > 0)
+ {
+ if (args[0] == "/?")
+ {
+ Console.WriteLine(
+ "\n\ncli_bridgetest_inprocess [bootstrap file] \n\n"
+ + "bootstrap file \n"
+ + "\t contains the entries UNO_TYPES and UNO_SERVICES.\n"
+ + "\t If a file is not provided than it is assumed that a\n"
+ + "\t cli_bridgetest_inprocess.ini file can be found in the\n "
+ + "\t current working directory.\n"
+ );
+ return 0;
+ }
+ else
+ {
+ bootstrap_ini = args[0];
+ }
+ }
+
// bootstrap native UNO
XComponentContext xContext =
Bootstrap.defaultBootstrap_InitialComponentContext(
- "cli_bridgetest_inprocess.ini", null );
+ bootstrap_ini, null );
using (new uno.util.DisposeGuard( (XComponent) xContext ))
{
@@ -235,7 +257,7 @@ public class BridgeTest
{
GC.WaitForPendingFinalizers();
System.Console.WriteLine( exc );
- return 1;
+ return -1;
}
GC.WaitForPendingFinalizers();