Author: nicko
Date: Sun Feb 25 08:12:47 2007
New Revision: 511536
URL: http://svn.apache.org/viewvc?view=rev&rev=511536
Log:
Updated runtests target to run the tests for the current framework only, this
is because the <nunit2> task does not support runing tests under different
frameworks.
Modified:
logging/log4net/trunk/tests/nant.build
Modified: logging/log4net/trunk/tests/nant.build
URL:
http://svn.apache.org/viewvc/logging/log4net/trunk/tests/nant.build?view=diff&rev=511536&r1=511535&r2=511536
==============================================================================
--- logging/log4net/trunk/tests/nant.build (original)
+++ logging/log4net/trunk/tests/nant.build Sun Feb 25 08:12:47 2007
@@ -15,7 +15,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<project name="log4net-samples" default="runtests"
xmlnds="http://tempuri.org/nant-vs.xsd">
+<project name="log4net-tests" default="runtests"
xmlnds="http://tempuri.org/nant-vs.xsd">
<property name="log4net.basedir" value="../" readonly="false" />
<property name="project.build.config" value="debug" readonly="false" />
<property name="project.build.package" value="false" readonly="false" />
@@ -305,6 +305,11 @@
<!-- Currently we cannot run the tests in the environment of the target
framework only in the host framework -->
<target name="runtests" description="Runs log4net tests">
+ <!--
+ Because the <nunit2> task does not support multiple
frameworks through the
+ nant.settings.currentframework setting we cannot just
run the tests for each framework.
+ Only the tests for the current framework are run.
+
<if test="${framework::exists('net-1.0')}">
<call target="runtests-net-1.0" />
</if>
@@ -317,6 +322,11 @@
<if test="${framework::exists('mono-2.0')}">
<call target="runtests-mono-2.0" />
</if>
+ -->
+ <if test="${target::exists('runtests-' +
nant.settings.currentframework)}">
+ <echo message="Running tests for
${framework::get-target-framework()}" />
+ <call
target="runtests-${nant.settings.currentframework}" />
+ </if>
</target>
<target name="runtests-net-1.0" description="Runs log4net tests on .NET
Framework 1.0 version" depends="compile-net-1.0">