Author: lcorneliussen
Date: Wed Feb 9 17:31:10 2011
New Revision: 1068987
URL: http://svn.apache.org/viewvc?rev=1068987&view=rev
Log:
[NPANDAY-369]
* Introduced support for forcing tests to run on 32bit / x86
Modified:
incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java
Modified:
incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java
URL:
http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java?rev=1068987&r1=1068986&r2=1068987&view=diff
==============================================================================
---
incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java
(original)
+++
incubator/npanday/trunk/plugins/maven-test-plugin/src/main/java/npanday/plugin/test/TesterMojo.java
Wed Feb 9 17:31:10 2011
@@ -79,6 +79,13 @@ extends AbstractMojo
private boolean xmlConsole;
/**
+ * On 64bit-systems, the tests will automatically perform in .NET
64bit-version. If you need to
+ * run your tests using 32bit (native calls, i.e.) set this option to true.
+ * @parameter default-value = "false"
+ */
+ private boolean forceX86;
+
+ /**
* Skips unit test
*
* @parameter expression = "${skipTests}" default-value = "false"
@@ -167,7 +174,8 @@ extends AbstractMojo
String exe;
if ( nunitCommand == null )
{
- exe = "nunit-console";
+ // nunit-console-x86 is included since 2.4.2 (August 2007,
http://www.nunit.org/index.php?p=releaseNotes&r=2.4.3)
+ exe = "nunit-console" + (forceX86 ? "-x86" : "");
if ( vendorInfo != null )
{