Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
cxx tests can not run with command './build.sh clean install'.
[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] ------------------------------------------------------------------------
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.
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" />