mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 12:31:30 -10:00
* Test/SqlSharpCli.cs: added file My new toy. SQL# is a command-line tool to enter SQL commands and queries using Mono System.Data. It also serves as a test for Mono System.Data. * System.Data.SqlClient/SqlCommand.cs: modified - ExecuteNonQuery(), ExecuteScalar(), and ExecuteReader() should handle the results from SQL Commands and Queries. - Internal class SqlResult should not create schema Table for the result from a SQL Command. Also, set the RecordsRetrieved property for SqlDataReader. - Closing the SqlDataReader should Close() the SqlConnection for a CommandBehavior.CloseConnection. - Set defaults for SqlResult * System.Data.SqlClient/SqlConnection.cs: modified - when SqlDataReader is Close() should Close() the SqlConnection for a CommandBehavior.CloseConnection. Changed internal Property from OpenReader get/set to IsReaderOpen get and created internal methods OpenReader()/CloseReader() for SqlCommand to call. SqlConnection needs to be prevented from doing while SqlDataReader is being used. * System.Data.SqlClient/SqlDataReader.cs: modified - call SqlCommand's OpenReader() internal method. get RecordsRetrieved from SqlResult. set/reset default values for SqlDataReader. * Test/PostgresTest.cs * Test/TestExecuteScalar.cs * Test/TestSqlDataReader.cs: modified for the Execute...() methods in SqlCommand to test SQL Queries and Commands * Test/System.Data_test.build: modified exclude new file Test/SqlSharpCli.cs from test build svn path=/trunk/mcs/; revision=4944
76 lines
2.4 KiB
INI
76 lines
2.4 KiB
INI
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
|
|
<!-- NAnt build file for System.Data_test.dll -->
|
|
<!-- Target build (default) builds tests -->
|
|
<!-- Target test runs tests -->
|
|
|
|
<project name="System.Data_test" default="build">
|
|
<property name="debug" value="false"/>
|
|
<property name="nunit_home" value="..\..\..\nunit"/>
|
|
|
|
<target name="build">
|
|
</target>
|
|
|
|
<target name="assemblies">
|
|
<csc target="library" output="System.Data_test.dll" debug="${debug}">
|
|
<arg value="/nowarn:1595"/>
|
|
<sources>
|
|
<includes name="**/*.cs"/>
|
|
<excludes name="TheTests.cs"/>
|
|
<excludes name="ReadPostgresData.cs"/>
|
|
<excludes name="TestExecuteScalar.cs"/>
|
|
<excludes name="TestSqlDataReader.cs"/>
|
|
<excludes name="TestSqlException.cs"/>
|
|
<excludes name="TestSqlInsert.cs"/>
|
|
<excludes name="TestSqlIsolationLevel.cs"/>
|
|
<excludes name="TestSqlDataAdapter.cs"/>
|
|
<excludes name="PostgresTest.cs"/>
|
|
<excludes name="TestSqlParameters.cs"/>
|
|
<excludes name="SqlSharpCli.cs"/>
|
|
|
|
</sources>
|
|
<references basedir="..\..\..\nunit">
|
|
<includes name="NUnitCore.dll"/>
|
|
</references>
|
|
<arg value="/r:..\..\lib\System.Data.dll"/>
|
|
</csc>
|
|
</target>
|
|
|
|
<target name="RunTests">
|
|
<csc target="exe" output="RunTests.System.Data.exe" debug="${debug}">
|
|
<sources>
|
|
<includes name="**/*.cs"/>
|
|
<excludes name="**/AllTests.cs"/>
|
|
<excludes name="**/MartinTests.cs"/>
|
|
<excludes name="ReadPostgresData.cs"/>
|
|
<excludes name="TestExecuteScalar.cs"/>
|
|
<excludes name="TestSqlDataReader.cs"/>
|
|
<excludes name="TestSqlException.cs"/>
|
|
<excludes name="TestSqlInsert.cs"/>
|
|
<excludes name="TestSqlIsolationLevel.cs"/>
|
|
<excludes name="PostgresTest.cs"/>
|
|
<excludes name="TestSqlDataAdapter.cs"/>
|
|
<excludes name="TestSqlParameters.cs"/>
|
|
<excludes name="SqlSharpCli.cs"/>
|
|
|
|
</sources>
|
|
<references basedir="..\..\..\nunit">
|
|
<includes name="NUnitBase.dll"/>
|
|
</references>
|
|
<arg value="/nowarn:1595"/>
|
|
<arg value="/noconfig"/>
|
|
<arg value="/r:..\..\lib\System.Data.dll"/>
|
|
</csc>
|
|
|
|
</target>
|
|
|
|
<target name="test" depends="assemblies">
|
|
<exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.System.Data.AllTests,System.Data_test.dll" failonerror="false"/>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete file="System.Data.dll" failonerror="false"/>
|
|
<delete file="System.Data_test.dll" failonerror="false"/>
|
|
</target>
|
|
</project>
|