[
https://issues.jboss.org/browse/JBTM-1562?page=com.atlassian.jira.plugin....
]
Amos Feng updated JBTM-1562:
----------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
can not run cxx tests
---------------------
Key: JBTM-1562
URL:
https://issues.jboss.org/browse/JBTM-1562
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Testing
Reporter: Amos Feng
Assignee: Amos Feng
Fix For: 5.0.0.M3
cxx tests can not run with command './build.sh clean install'.
{code}
[INFO] --- blacktie-cpp-plugin:5.0.0.M3-SNAPSHOT:test-compile (test-compile) @
blacktie-core ---
init:
fileset.test.check:
[echo] src/test/cpp **/*.c*
gen-test-runner1:
[mkdir] Created dir: /home/zhfeng/src/zhfeng/blacktie/core/target/generated-sources
[mkdir] Created dir: /home/zhfeng/src/zhfeng/blacktie/core/target/generated/proto
gen-test-runner2:
gen-test-runner:
package:
test-compile:
[mkdir] Created dir: /home/zhfeng/src/zhfeng/blacktie/core/target/cpp-test-classes
[copy] Copying 5 files to
/home/zhfeng/src/zhfeng/blacktie/core/target/cpp-test-classes
[cc] 12 total files to be compiled.
[cc] Starting link
_test-compile-msvc:
[INFO]
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ blacktie-core ---
[INFO] Surefire report directory:
/home/zhfeng/src/zhfeng/blacktie/core/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- blacktie-cpp-plugin:5.0.0.M3-SNAPSHOT:test (test) @ blacktie-core ---
init:
fileset.test.check:
[echo] src/test/cpp **/.c*
test:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.725s
[INFO] Finished at: Mon Mar 25 11:33:00 CST 2013
[INFO] Final Memory: 8M/148M
[INFO] ------------------------------------------------------------------------
{code}
It looks like the issues with "test.includes" which is only valid in
test-compile phase. I make the following changes and the tests work.
{code}
diff --git a/utils/cpp-plugin/src/main/resources/btcpp.build.xml
b/utils/cpp-plugin/src/main/resources
index 3934343..63b730c 100644
--- a/utils/cpp-plugin/src/main/resources/btcpp.build.xml
+++ b/utils/cpp-plugin/src/main/resources/btcpp.build.xml
@@ -60,7 +60,7 @@
<property name="src.main" value="src/main/cpp" />
<property name="src.test" value="src/test/cpp" />
<property name="src.excludes" value="" />
- <property name="test.includes" value="" />
+ <property name="test.includes" value="*" />
<property name="test.excludes" value="" />
<property name="lib.type" value="shared" />
<property name="runtime" value="dynamic" />
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira