Update of /cvsroot/mocklib/netmocklib/bldfiles
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17190/bldfiles
Modified Files:
project.build
Log Message:
fix nunit to work now with NMocklib...what a pain.
Index: project.build
===================================================================
RCS file: /cvsroot/mocklib/netmocklib/bldfiles/project.build,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** project.build 11 Apr 2008 05:42:55 -0000 1.7
--- project.build 12 Apr 2008 01:18:20 -0000 1.8
***************
*** 57,63 ****
<target name="compileTest" depends="compile" description="compiles the source file for this project">
<echo message="Generating ${comp.name} type=${type}"/>
! <mkdir dir="${assemblies}"/>
! <csc target="${type}" debug="true" output="${assemblies}/${test.comp}" warnaserror="true">
<sources basedir=".">
<include name="${test.input}/**/*.cs"/>
--- 57,63 ----
<target name="compileTest" depends="compile" description="compiles the source file for this project">
<echo message="Generating ${comp.name} type=${type}"/>
! <mkdir dir="${test.assemblies}"/>
! <csc target="${type}" debug="true" output="${test.assemblies}/${test.comp}" warnaserror="true">
<sources basedir=".">
<include name="${test.input}/**/*.cs"/>
***************
*** 65,70 ****
<references basedir=".">
<include name="${lib}/**/*.dll"/>
- <include name="${assemblies}/${comp.name}"/>
<include name="${libexclude}/**/*.dll"/>
</references>
<resources basedir="${csfiles}">
--- 65,70 ----
<references basedir=".">
<include name="${lib}/**/*.dll"/>
<include name="${libexclude}/**/*.dll"/>
+ <include name="${assemblies}/${comp.name}"/>
</references>
<resources basedir="${csfiles}">
***************
*** 112,116 ****
<targets>
<include name="${assemblies}/${comp.name}" />
! <include name="${assemblies}/${test.comp}" />
</targets>
<arg value="/out:${reports}/fxcop.xml" />
--- 112,116 ----
<targets>
<include name="${assemblies}/${comp.name}" />
! <include name="${test.assemblies}/${test.comp}" />
</targets>
<arg value="/out:${reports}/fxcop.xml" />
***************
*** 139,144 ****
<target name="testall" depends="compile">
<exec program="tools/NUnit/nunit-console.exe">
! <arg line="${assemblies}/${test.comp}" />
</exec>
<!--nunit2>
--- 139,166 ----
<target name="testall" depends="compile">
+ <!-- ahhhh, this following hack is because of this
+ 1. C# has no concept of path...ahhhh
+ 2. work around 1 would be to put in GAC. That is NOT an option
+ as the build should run immediately after checking out from
+ source control without installing stuff.
+ 3. I don't know how to generate the probing path(they should have a nant task)
+ -->
+ <copy todir="${test.assemblies}">
+ <fileset basedir="${libexclude}">
+ <include name="**/*.dll" />
+ </fileset>
+ </copy>
+ <copy todir="${test.assemblies}">
+ <fileset basedir="${assemblies}">
+ <include name="**/*.dll" />
+ </fileset>
+ </copy>
+
+ <!--Because of the ick design of NUnit2, we have to exec the
+ NUnit task ourselves!!! This is because they are expecting
+ NUnit to be installed on a computer....We prefer our developers
+ don't install NUnit so the upgrade is seamless -->
<exec program="tools/NUnit/nunit-console.exe">
! <arg line="${test.assemblies}/${test.comp}" />
</exec>
<!--nunit2>
***************
*** 146,149 ****
--- 168,172 ----
<test assemblyname="${assemblies}/${test.comp}"/>
</nunit2-->
+
</target>
|