Commit b4fb33ea authored by Christophe Demarey's avatar Christophe Demarey

Add a profile to automate some tests.

parent 304d7c53
......@@ -43,6 +43,7 @@
<composite.file>helloworld-wired</composite.file>
<service.name>r</service.name>
<method.name>run</method.name>
<distribution.test>true</distribution.test>
</properties>
<dependencies>
......
......@@ -43,6 +43,7 @@
<composite.file>helloworld-pojo</composite.file>
<service.name>r</service.name>
<method.name>run</method.name>
<distribution.test>true</distribution.test>
</properties>
<dependencies>
......
......@@ -45,6 +45,7 @@
<composite.file>helloworld-property</composite.file>
<service.name>r</service.name>
<method.name>run</method.name>
<distribution.test>true</distribution.test>
</properties>
<dependencies>
......
......@@ -455,43 +455,125 @@
</profile>
<!-- To execute an SCA composite with FraSCAti JMX type 'mvn -Pjmx'. -->
<profile>
<id>jmx</id>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-jmx</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>jmx</id>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-jmx</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
<!-- To execute an SCA composite with FraSCAti Remote Introspection type 'mvn -Premote'. -->
<profile>
<id>remote</id>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-introspection-impl</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<properties>
<org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAtiJDTFractalRest</org.ow2.frascati.bootstrap>
</properties>
</profile>
<profile>
<id>remote</id>
<dependencies>
<dependency>
<groupId>org.ow2.frascati</groupId>
<artifactId>frascati-introspection-impl</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<properties>
<org.ow2.frascati.bootstrap>org.ow2.frascati.bootstrap.FraSCAtiJDTFractalRest</org.ow2.frascati.bootstrap>
</properties>
</profile>
<!-- To execute an SCA composite with FraSCAti UML Sequence Diagram Intent type 'mvn -Puml'. -->
<profile>
<id>uml</id>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.intent</groupId>
<artifactId>frascati-intent-uml-sequence-diagram</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<id>uml</id>
<dependencies>
<dependency>
<groupId>org.ow2.frascati.intent</groupId>
<artifactId>frascati-intent-uml-sequence-diagram</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</profile>
<!-- Test the distribution -->
<profile>
<id>distrib-test</id>
<activation>
<activeByDefault>false</activeByDefault>
<property>
<name>distribution.test</name>
</property>
</activation>
<build>
<plugins>
<!-- <plugin>-->
<!-- <artifactId>maven-resources-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>copy-resources</id>-->
<!-- <phase>process-resource</phase>-->
<!-- <goals>-->
<!-- <goal>copy-resources</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <outputDirectory>${basedir}/target/src</outputDirectory>-->
<!-- <resources> -->
<!-- <resource>-->
<!-- <directory>src/main</directory>-->
<!-- <filtering>true</filtering>-->
<!-- </resource>-->
<!-- </resources> -->
<!-- </configuration> -->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>frascati-compile</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments>
<argument>compile</argument>
<argument>src/main</argument>
<argument>${composite.file}</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>frascati-run</id>
<phase>pre-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<arguments>
<argument>run</argument>
<argument>${composite.file}</argument>
<argument>-libpath</argument>
<argument>${composite.file}.jar</argument>
<argument>-s</argument>
<argument>${service.name}</argument>
<argument>-m</argument>
<argument>${method.name}</argument>
</arguments>
</configuration>
</execution>
</executions>
<configuration>
<executable>${frascati.script.path}/frascati</executable>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<modules>
......
......@@ -44,6 +44,7 @@
<composite.file>twitter-client</composite.file>
<service.name>r</service.name>
<method.name>run</method.name>
<distribution.test>true</distribution.test>
</properties>
<dependencies>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment