Update ooo320-m1
[ooovba.git] / applied_patches / 0314-mono-testtools.diff
blob2a40bb2497e250e895f9571e21d19460677c7cc3
1 --- testtools/source/bridgetest/cli/makefile.mk.old 2009-04-02 11:05:37.000000000 +0000
2 +++ testtools/source/bridgetest/cli/makefile.mk 2009-04-06 16:41:58.000000000 +0000
3 @@ -50,28 +50,25 @@ DLLPRE =
4 CFLAGSENABLESYMBOLS:=-Z7
5 # ------------------------------------------------------------------
7 -#These tests are for Windows only
8 -.IF "$(COM)" == "MSC" && "$(GUI)" == "WNT"
10 -.IF "$(CCNUMVER)" >= "001399999999"
11 -CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -AI $(SOLARBINDIR)
12 -SHL1STDLIBS = \
13 - mscoree.lib \
14 - msvcmrt.lib
15 -.ELSE
16 -CFLAGSCXX += -clr -AI $(OUT)$/bin -AI $(SOLARBINDIR)
17 -SHL1STDLIBS = \
18 - mscoree.lib
19 -.ENDIF
20 -SLOFILES= \
21 +#.IF "$(CCNUMVER)" >= "001399999999"
22 +#CFLAGSCXX += -clr:oldSyntax -AI $(OUT)$/bin -AI $(SOLARBINDIR)
23 +#SHL1STDLIBS = \
24 +# mscoree.lib \
25 +# msvcmrt.lib
26 +#.ELSE
27 +#CFLAGSCXX += -clr -AI $(OUT)$/bin -AI $(SOLARBINDIR)
28 +#SHL1STDLIBS = \
29 +# mscoree.lib
30 +#.ENDIF
31 +#SLOFILES= \
32 $(SLO)$/cli_cpp_bridgetest.obj
34 -SHL1OBJS = $(SLOFILES)
35 +#SHL1OBJS = $(SLOFILES)
37 -SHL1TARGET = $(TARGET)
38 +#SHL1TARGET = $(TARGET)
40 -SHL1DEF = $(MISC)$/$(SHL1TARGET).def
41 -DEF1NAME = $(SHL1TARGET)
42 +#SHL1DEF = $(MISC)$/$(SHL1TARGET).def
43 +#DEF1NAME = $(SHL1TARGET)
45 .ENDIF
47 @@ -92,7 +89,7 @@ CLI_CPPUHELPER = $(SOLARBINDIR)$/cli_cpp
48 CLI_OOOTYPES = $(SOLARBINDIR)$/cli_oootypes.dll
49 CLI_TYPES_BRIDGETEST = $(BIN)$/cli_types_bridgetest.dll
51 -CSCFLAGS = -warnaserror+
52 +CSCFLAGS =
53 .IF "$(CCNUMVER)" <= "001399999999"
54 VBC_FLAGS = -warnaserror+
55 .ELSE
56 @@ -149,8 +146,7 @@ $(BIN)$/cli_vb_bridgetest.uno.dll : \
57 -reference:$(CLI_TYPES_BRIDGETEST) \
58 -reference:System.dll \
59 -reference:System.Drawing.dll \
60 - -reference:System.Windows.Forms.dll \
61 - cli_vb_bridgetest.vb
62 + -reference:System.Windows.Forms.dll
64 $(BIN)$/cli_vb_testobj.uno.dll : \
65 cli_vb_testobj.vb \
66 @@ -181,9 +177,6 @@ $(BIN)$/cli_bridgetest_inprocess.exe : \
67 cli_bridgetest_inprocess.cs \
68 $(BIN)$/cli_cs_bridgetest.uno.dll \
69 $(BIN)$/cli_cs_testobj.uno.dll \
70 - $(BIN)$/cli_vb_bridgetest.uno.dll \
71 - $(BIN)$/cli_vb_testobj.uno.dll \
72 - $(BIN)$/cli_cpp_bridgetest.uno.dll \
73 $(MISC)$/copyassemblies.done \
74 $(CLI_BASETYPES) \
75 $(CLI_URETYPES) \
76 @@ -197,11 +190,7 @@ $(BIN)$/cli_bridgetest_inprocess.exe : \
77 -reference:$(CLI_CPPUHELPER) \
78 -reference:$(BIN)$/cli_cs_bridgetest.uno.dll \
79 -reference:$(BIN)$/cli_cs_testobj.uno.dll \
80 - -reference:$(BIN)$/cli_vb_bridgetest.uno.dll \
81 - -reference:$(BIN)$/cli_vb_testobj.uno.dll \
82 - -reference:$(BIN)$/cli_cpp_bridgetest.uno.dll \
83 cli_bridgetest_inprocess.cs
84 $(GNUCOPY) cli_bridgetest_inprocess.ini $(BIN)
86 -.ENDIF
88 --- testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs.old 2009-04-02 11:05:37.000000000 +0000
89 +++ testtools/source/bridgetest/cli/cli_bridgetest_inprocess.cs 2009-04-06 16:41:58.000000000 +0000
90 @@ -130,26 +130,14 @@ public class BridgeTest
91 new uno.Any(
92 typeof (XSingleComponentFactory),
93 new Factory(
94 - typeof (vb_testobj.VBBridgeTestObject),
95 - "com.sun.star.test.bridge.cli_uno.VbTestObject" ) ) );
96 - xSet.insert(
97 - new uno.Any(
98 - typeof (XSingleComponentFactory),
99 - new Factory(
100 - typeof (cpp_bridgetest.BridgeTest),
101 - "com.sun.star.test.bridge.cli_uno.CppBridgeTest" ) ) );
102 - xSet.insert(
103 - new uno.Any(
104 - typeof (XSingleComponentFactory),
105 - new Factory(
106 typeof (cs_testobj.BridgeTest),
107 "com.sun.star.test.bridge.cli_uno.CsBridgeTest" ) ) );
108 - xSet.insert(
109 - new uno.Any(
110 - typeof (XSingleComponentFactory),
111 - new Factory(
112 - typeof (vb_bridetest.BridgeTest),
113 - "com.sun.star.test.bridge.cli_uno.VbBridgeTest" ) ) );
115 +/* {
116 + Console.WriteLine(
117 + "\n[cli bridgetest] C# client calls C# object [hack]");
118 + cs_testobj.BridgeTest.perform_test (new cs_testobj.BridgeTestObject( xContext ));
119 + } */
121 // I.
122 // direct unbridged test
123 @@ -205,7 +193,7 @@ public class BridgeTest
124 // -s com.sun.star.test.bridge.cli_uno.VbBridgeTest
125 // -- com.sun.star.test.bridge.CppTestObject
126 // get CLI client
127 - test_client =
128 +/* test_client =
129 xContext.getServiceManager().createInstanceWithContext(
130 "com.sun.star.test.bridge.cli_uno.VbBridgeTest",
131 xContext );
132 @@ -214,7 +202,7 @@ public class BridgeTest
133 "\n[cli bridgetest] 4. Visual Basic client calls C++ (native) object" );
134 // run with native target object
135 xClient.run(
136 - new String [] { "com.sun.star.test.bridge.CppTestObject" } );
137 + new String [] { "com.sun.star.test.bridge.CppTestObject" } ); */
139 // V:
140 // uno -ro uno_services.rdb -ro uno_types.rdb
141 @@ -237,7 +225,7 @@ public class BridgeTest
142 // uno -ro uno_services.rdb -ro uno_types.rdb
143 // -s com.sun.star.test.bridge.cli_uno.CppBridgeTest
144 // -- com.sun.star.test.bridge.CppTestObject
145 - test_client =
146 +/* test_client =
147 xContext.getServiceManager().createInstanceWithContext(
148 "com.sun.star.test.bridge.cli_uno.CppBridgeTest",
149 xContext );
150 @@ -246,7 +234,7 @@ public class BridgeTest
151 "\n[cli bridgetest] 6. CLI C++ client calls C++ object (native)");
152 // run with native target object
153 xClient.run(
154 - new String [] { "com.sun.star.test.bridge.CppTestObject" } );
155 + new String [] { "com.sun.star.test.bridge.CppTestObject" } );*/
158 catch (System.Exception exc)
159 --- testtools/source/bridgetest/cli/cli_bridgetest_inprocess.ini.old 2009-04-02 11:05:37.000000000 +0000
160 +++ testtools/source/bridgetest/cli/cli_bridgetest_inprocess.ini 2009-04-06 16:41:58.000000000 +0000
161 @@ -1,3 +1,3 @@
162 [Bootstrap]
163 -UNO_TYPES=$SYSBINDIR/uno_types.rdb
164 -UNO_SERVICES=$SYSBINDIR/uno_services.rdb
165 +UNO_TYPES=uno_types.rdb
166 +UNO_SERVICES=uno_services.rdb