Create mvn profile for integrationtests 35/2435/5
authorAlissa Bonas <abonas@redhat.com>
Wed, 6 Nov 2013 11:49:52 +0000 (13:49 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 6 Nov 2013 20:50:33 +0000 (20:50 +0000)
Change-Id: I119cb15f184523201cb190f2dfe8b0639995f704
Signed-off-by: Alissa Bonas <abonas@redhat.com>
README.OPENDAYLIGHT
opendaylight/config/pom.xml
opendaylight/md-sal/pom.xml
opendaylight/md-sal/samples/pom.xml
opendaylight/netconf/pom.xml
pom.xml

index e85aa31..78d54a7 100644 (file)
@@ -21,12 +21,20 @@ HOW TO BUILD
 ============
 In order to build it's required to have JDK 1.7+ and Maven 3+, to get
 a build going it's needed to:
-1) Choose the distribution, from within opendaylight/distribution
-2) Go in the directory and run
+1) From the root directory run
    "mvn clean install"
-3) On succesfull completion go in the target directory to pick the zip
-file of the distribution or controller can be executed right from
-there going into the distribution directory.
+2) On succesfull completion go in the directory:
+"opendaylight/distribution/opendaylight/target"
+
+to pick the zip file of the distribution or controller can be executed
+right from there going into the distribution directory.
+
+Please note that this way no integration tests but only UT will be
+executed, if you are planning on committing code be aware that the
+code will be tested also for Integrations tests hence make sure before
+submitting a patch to build using the command:
+   "mvn clean install -Pintegrationtests"
+to get IT executed.
 
 HOW TO RELEASE ARTIFACTS
 ========================
index 949c283..62b9ec3 100755 (executable)
         <module>config-persister-file-adapter</module>
         <module>yang-jmx-generator</module>
         <module>yang-jmx-generator-plugin</module>
-        <module>yang-jmx-generator-it</module>
         <module>yang-store-api</module>
         <module>yang-store-impl</module>
         <module>yang-test</module>
         <module>logback-config</module>
     </modules>
+
+    <profiles>
+      <profile>
+        <id>integrationtests</id>
+        <activation>
+          <activeByDefault>false</activeByDefault>
+        </activation>
+        <modules>
+          <module>yang-jmx-generator-it</module>
+        </modules>
+      </profile>
+    </profiles>
+
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <java.version.source>1.7</java.version.source>
index 7f5f10e..06df83e 100644 (file)
@@ -27,7 +27,6 @@
         <module>sal-binding-api</module>
         <module>sal-binding-config</module>
         <module>sal-binding-broker</module>
-        <module>sal-binding-it</module>
 
         <!-- Samples -->
         <module>samples</module>
 
         <!-- Clustered Data Store -->
         <module>clustered-data-store/implementation</module>
-        <module>clustered-data-store/integrationtest</module>
 
         <module>sal-zeromq-connector</module>
         <module>test</module>
     </modules>
 
+
+    <profiles>
+        <profile>
+           <id>integrationtests</id>
+           <activation>
+               <activeByDefault>false</activeByDefault>
+           </activation>
+            <modules>
+                <module>sal-binding-it</module>
+                <module>clustered-data-store/integrationtest</module>
+            </modules>
+        </profile>
+    </profiles>
+
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
index 7bd9a3a..04e0a32 100644 (file)
        <modules>
                <module>toaster</module>
                <module>toaster-consumer</module>
-               <module>toaster-it</module>
                <module>toaster-provider</module>
        </modules>
+
+    <profiles>
+      <profile>
+        <id>integrationtests</id>
+        <activation>
+          <activeByDefault>false</activeByDefault>
+        </activation>
+        <modules>
+          <module>toaster-it</module>
+        </modules>
+      </profile>
+    </profiles>
+
        <groupId>org.opendaylight.controller.samples</groupId>
 </project>
index 7f0bd44..8f69f8d 100644 (file)
         <module>netconf-impl</module>
         <module>config-netconf-connector</module>
         <module>netconf-util</module>
-        <module>netconf-it</module>
         <module>config-persister-impl</module>
         <module>netconf-mapping-api</module>
         <module>netconf-client</module>
     </modules>
 
+    <profiles>
+        <profile>
+           <id>integrationtests</id>
+           <activation>
+               <activeByDefault>false</activeByDefault>
+           </activation>
+            <modules>
+              <module>netconf-it</module>
+            </modules>
+        </profile>
+    </profiles>
+
     <properties>
         <osgi.version>5.0.0</osgi.version>
         <maven.bundle.version>2.3.7</maven.bundle.version>
diff --git a/pom.xml b/pom.xml
index 5899d56..5a7f41b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <module>opendaylight/forwarding/staticrouting</module>
     <module>opendaylight/clustering/services</module>
     <module>opendaylight/clustering/services_implementation</module>
-    <module>opendaylight/clustering/integrationtest</module>
     <module>opendaylight/clustering/stub</module>
     <module>opendaylight/clustering/test</module>
     <module>opendaylight/configuration/api</module>
     <module>opendaylight/configuration/implementation</module>
-    <module>opendaylight/configuration/integrationtest</module>
     <module>opendaylight/routing/dijkstra_implementation</module>
     <module>opendaylight/arphandler</module>
     <module>opendaylight/forwardingrulesmanager/api</module>
     <module>opendaylight/forwardingrulesmanager/implementation</module>
-    <module>opendaylight/forwardingrulesmanager/integrationtest</module>
     <module>opendaylight/hosttracker/api</module>
     <module>opendaylight/hosttracker/implementation</module>
-    <module>opendaylight/hosttracker/integrationtest</module>
     <module>opendaylight/hosttracker_new/api</module>
     <module>opendaylight/hosttracker_new/implementation</module>
     <module>opendaylight/containermanager/api</module>
     <module>opendaylight/containermanager/implementation</module>
-    <module>opendaylight/containermanager/it.implementation</module>
     <module>opendaylight/appauth</module>
     <module>opendaylight/switchmanager/api</module>
     <module>opendaylight/switchmanager/implementation</module>
-    <module>opendaylight/switchmanager/integrationtest</module>
     <module>opendaylight/statisticsmanager/api</module>
     <module>opendaylight/statisticsmanager/implementation</module>
-    <module>opendaylight/statisticsmanager/integrationtest</module>
     <module>opendaylight/topologymanager/implementation</module>
-    <module>opendaylight/topologymanager/integrationtest</module>
     <module>opendaylight/usermanager/api</module>
     <module>opendaylight/usermanager/implementation</module>
     <module>opendaylight/connectionmanager/api</module>
     <module>opendaylight/northbound/usermanager</module>
     <module>opendaylight/northbound/controllermanager</module>
 
-    <!-- Northbound integration tests -->
-    <module>opendaylight/northbound/integrationtest</module>
     <!-- Debug and logging -->
     <module>opendaylight/logging/bridge</module>
 
     <module>opendaylight/samples/loadbalancer</module>
     <module>opendaylight/samples/northbound/loadbalancer</module>
 
-    <module>opendaylight/distribution/sanitytest/</module>
-
     <!-- Parents -->
     <module>opendaylight/commons/concepts</module>
     <module>opendaylight/commons/httpclient</module>
-    <module>opendaylight/commons/integrationtest</module>
     <module>opendaylight/commons/checkstyle</module>
     <module>opendaylight/commons/opendaylight</module>
     <module>opendaylight/commons/parent</module>
   </modules>
+
+    <profiles>
+        <profile>
+           <id>integrationtests</id>
+           <activation>
+               <activeByDefault>false</activeByDefault>
+           </activation>
+            <modules>
+                <module>opendaylight/clustering/integrationtest</module>
+                <module>opendaylight/configuration/integrationtest</module>
+                <module>opendaylight/forwardingrulesmanager/integrationtest</module>
+                <module>opendaylight/hosttracker/integrationtest</module>
+                <module>opendaylight/switchmanager/integrationtest</module>
+                <module>opendaylight/topologymanager/integrationtest</module>
+                <!-- Northbound integration tests -->
+                <module>opendaylight/northbound/integrationtest</module>
+                <module>opendaylight/statisticsmanager/integrationtest</module>
+                <module>opendaylight/commons/integrationtest</module>
+                <module>opendaylight/containermanager/it.implementation</module>
+                <module>opendaylight/distribution/sanitytest/</module>
+            </modules>
+        </profile>
+    </profiles>
 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.