From: Date: December 5 2006 7:52pm Subject: Connector/NET commit: r476 - in trunk: . TestSuite TestSuite/configs mysqlclient mysqlclient/core List-Archive: http://lists.mysql.com/commits/16473 Message-Id: <200612051852.kB5Iq4K1011996@bk-internal.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added: trunk/TestSuite/configs/ trunk/TestSuite/configs/mysql-50.config trunk/TestSuite/configs/mysql-51.config Modified: trunk/Client.build trunk/TestSuite/BaseTest.cs trunk/mysqlclient/MySql.Data.2005.csproj trunk/mysqlclient/core/Resources.Designer.cs Log: work getting test suite working correctly with new CI setup Modified: trunk/Client.build =================================================================== --- trunk/Client.build 2006-12-04 17:57:52 UTC (rev 475) +++ trunk/Client.build 2006-12-05 18:52:03 UTC (rev 476) @@ -31,20 +31,15 @@ - - - - - - + - + @@ -53,9 +48,9 @@ define="${defines}" debug="${debug}" optimize="${opt}" keycontainer="ConnectorNet" doc="${outdir}/MySql.Data.xml"> - - - + + + @@ -88,11 +83,16 @@ + + + + + - + @@ -104,7 +104,7 @@ - + @@ -123,7 +123,7 @@ - + @@ -150,29 +150,22 @@ --> - - - - - + - - + - - + @@ -181,16 +174,16 @@ coverage --> - + - + Modified: trunk/TestSuite/BaseTest.cs =================================================================== --- trunk/TestSuite/BaseTest.cs 2006-12-04 17:57:52 UTC (rev 475) +++ trunk/TestSuite/BaseTest.cs 2006-12-05 18:52:03 UTC (rev 476) @@ -37,18 +37,35 @@ protected string host; protected string user; protected string password; + protected int port; + protected string database; public BaseTest() { - csAdditions = ";pooling=false;use ssl=true"; - user = "root"; - password = ""; - host = "192.168.1.127"; - } + csAdditions = ";pooling=false;"; + user = "root"; + password = ""; + host = "localhost"; + database = "test"; + port = 3306; + object o = ConfigurationSettings.AppSettings["port"]; + if (o != null) + port = Int32.Parse((string)o); + o = ConfigurationSettings.AppSettings["database"]; + if (o != null) + database = (string)o; + o = ConfigurationSettings.AppSettings["userid"]; + if (o != null) + user = (string)o; + o = ConfigurationSettings.AppSettings["password"]; + if (o != null) + password = (string)o; + } + protected virtual string GetConnectionInfo() { - return String.Empty; + return String.Format("protocol=tcp;port={0}", port); } protected string GetConnectionString(bool includedb) @@ -56,7 +73,7 @@ string connStr = String.Format("server={0};user id={1};password={2};" + "persist security info=true;{3}", host, user, password, csAdditions); if (includedb) - connStr += ";database=test"; + connStr += String.Format("database={0};", database); connStr += GetConnectionInfo(); return connStr; } Added: trunk/TestSuite/configs/mysql-50.config =================================================================== --- trunk/TestSuite/configs/mysql-50.config 2006-12-04 17:57:52 UTC (rev 475) +++ trunk/TestSuite/configs/mysql-50.config 2006-12-05 18:52:03 UTC (rev 476) @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file Added: trunk/TestSuite/configs/mysql-51.config =================================================================== --- trunk/TestSuite/configs/mysql-51.config 2006-12-04 17:57:52 UTC (rev 475) +++ trunk/TestSuite/configs/mysql-51.config 2006-12-05 18:52:03 UTC (rev 476) @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file Modified: trunk/mysqlclient/MySql.Data.2005.csproj =================================================================== --- trunk/mysqlclient/MySql.Data.2005.csproj 2006-12-04 17:57:52 UTC (rev 475) +++ trunk/mysqlclient/MySql.Data.2005.csproj 2006-12-05 18:52:03 UTC (rev 476) @@ -11,8 +11,7 @@ MySql.Data - - + cnet.snk JScript Grid IE50 @@ -26,7 +25,7 @@ - false + true bin\net-2.0\Debug\ @@ -112,6 +111,7 @@ + @@ -158,7 +158,11 @@ - + + True + True + Resources.resx + @@ -215,6 +219,9 @@ Designer + ResXFileCodeGenerator + Resources.Designer.cs + MySql.Data.MySqlClient Modified: trunk/mysqlclient/core/Resources.Designer.cs =================================================================== --- trunk/mysqlclient/core/Resources.Designer.cs 2006-12-04 17:57:52 UTC (rev 475) +++ trunk/mysqlclient/core/Resources.Designer.cs 2006-12-05 18:52:03 UTC (rev 476) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.308 +// Runtime Version:2.0.50727.312 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -39,7 +39,7 @@ internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MySql.Data.MySqlClient.Resources", typeof(Resources).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MySql.Data.MySqlClient.core.Resources", typeof(Resources).Assembly); resourceMan = temp; } return resourceMan;