This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch skip_test_cpp
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 2ca677b81047cefce7a8f3dc3dd937ec62c35116
Author: HTHou <[email protected]>
AuthorDate: Tue Jul 16 17:01:44 2024 +0800

    Skip building cpp test code when using -DskipTests
---
 iotdb-client/client-cpp/pom.xml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/iotdb-client/client-cpp/pom.xml b/iotdb-client/client-cpp/pom.xml
index ca2440933da..15013a782af 100644
--- a/iotdb-client/client-cpp/pom.xml
+++ b/iotdb-client/client-cpp/pom.xml
@@ -37,6 +37,7 @@
         <!-- Default value of cmake root -->
         
<cmake.root.dir>${project.build.directory}/dependency/cmake/</cmake.root.dir>
         
<thrift.exec.absolute.path>${project.build.directory}/thrift/bin/${thrift.executable}</thrift.exec.absolute.path>
+        <maven.test.skip>${ctest.skip.tests}</maven.test.skip>
     </properties>
     <dependencies>
         <dependency>
@@ -107,11 +108,12 @@
                         <goals>
                             <goal>wget</goal>
                         </goals>
-                        <phase>generate-resources</phase>
+                        <phase>generate-test-resources</phase>
                         <configuration>
                             <url>${catch2.url}</url>
                             <unpack>false</unpack>
                             
<outputDirectory>${project.build.directory}/build/test/catch2</outputDirectory>
+                            <skip>${ctest.skip.tests}</skip>
                         </configuration>
                     </execution>
                 </executions>
@@ -238,9 +240,6 @@
                     <!-- Actually executes the testing compilation -->
                     <execution>
                         <id>cmake-compile-test</id>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
                         <phase>test-compile</phase>
                         <configuration>
                             <config>${cmake.build.type}</config>
@@ -257,6 +256,7 @@
                         <phase>integration-test</phase>
                         <configuration>
                             
<buildDirectory>${project.build.directory}/build/test</buildDirectory>
+                            <skipTests>${ctest.skip.tests}</skipTests>
                         </configuration>
                     </execution>
                 </executions>

Reply via email to