Skip to content

Commit

Permalink
Set up all the transformers tests to use the cached classloader from …
Browse files Browse the repository at this point in the history
…the checkouts target/model-test-classpath-cache folder
  • Loading branch information
kabir committed Mar 6, 2013
1 parent 747b568 commit ab48d70
Show file tree
Hide file tree
Showing 36 changed files with 256 additions and 9 deletions.
4 changes: 4 additions & 0 deletions appclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
<includes>
<include>org/jboss/as/ejb3/**/*TestCase.java</include>
</includes>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
6 changes: 4 additions & 2 deletions clustering/infinispan/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@
<argLine>-javaagent:${org.jboss.byteman:byteman:jar}=port:9091,boot:${org.jboss.byteman:byteman:jar}</argLine>
<systemPropertyVariables>
<org.jboss.byteman.contrib.bmunit.agent.inhibit>true</org.jboss.byteman.contrib.bmunit.agent.inhibit>
<org.jboss.byteman.contrib.bmunit.agent.port>9091</org.jboss.byteman.contrib.bmunit.agent.port>
</systemPropertyVariables>
<org.jboss.byteman.contrib.bmunit.agent.port>9091</org.jboss.byteman.contrib.bmunit.agent.port>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
2 changes: 2 additions & 0 deletions clustering/jgroups/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
<systemPropertyVariables>
<org.jboss.byteman.contrib.bmunit.agent.inhibit>true</org.jboss.byteman.contrib.bmunit.agent.inhibit>
<org.jboss.byteman.contrib.bmunit.agent.port>9091</org.jboss.byteman.contrib.bmunit.agent.port>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
Expand Down
4 changes: 4 additions & 0 deletions cmp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@
<includes>
<include>org/jboss/as/cmp/**/*TestCase.java</include>
</includes>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
17 changes: 17 additions & 0 deletions configadmin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@

<name>JBoss Application Server: Config Admin</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
Expand Down
4 changes: 4 additions & 0 deletions connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
<include>**/*TestCase.java</include>
</includes>
<enableAssertions>false</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
2 changes: 1 addition & 1 deletion core-model-test/tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.root>${org.jboss.model.test.root}</org.jboss.model.test.root>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
Expand Down
17 changes: 17 additions & 0 deletions ee/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@

<name>JBoss Application Server: EE</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>javax.validation</groupId>
Expand Down
4 changes: 4 additions & 0 deletions ejb3/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ vi:ts=4:sw=4:expandtab
<includes>
<include>org/jboss/as/ejb3/**/*TestCase.java</include>
</includes>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
13 changes: 12 additions & 1 deletion jacorb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,21 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>


<dependencies>
<dependency>
<groupId>org.jacorb</groupId>
Expand Down
4 changes: 4 additions & 0 deletions jaxrs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
17 changes: 17 additions & 0 deletions jdr/jboss-as-jdr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@
<artifactId>jboss-as-jdr</artifactId>
<name>JBoss Application Server: JDR</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>commons-cli</groupId>
Expand Down
4 changes: 4 additions & 0 deletions jmx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
<include>**/*TestCase.java</include>
</includes>
<enableAssertions>false</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
17 changes: 17 additions & 0 deletions jpa/core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,23 @@

<name>JBoss Application Server: JPA Subsystem</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<!-- Internal -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ private void testTransformers_1_1_0_RejectExpressions(ModelTestControllerVersion

builder.createLegacyKernelServicesBuilder(null, controllerVersion, oldVersion)
.setExtensionClassName(JPAExtension.class.getName())
.addMavenResourceURL("org.jboss.as:jboss-as-jpa-spi:" + controllerVersion.getMavenGavVersion())
.addMavenResourceURL("org.jboss.as:jboss-as-jpa:" + controllerVersion.getMavenGavVersion());

KernelServices mainServices = builder.build();
Expand Down
3 changes: 3 additions & 0 deletions jsf/subsystem/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@
<configuration>
<systemPropertyVariables>
<module.path>${basedir}${file.separator}src${file.separator}test${file.separator}resources${file.separator}modules${path.separator}${basedir}${file.separator}src${file.separator}test${file.separator}resources${file.separator}modules2</module.path>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>

</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions jsr77/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
<include>**/*TestCase.java</include>
</includes>
<enableAssertions>false</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 3 additions & 1 deletion logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
<jboss.server.config.dir>${project.build.directory}${file.separator}config</jboss.server.config.dir>
<org.jboss.byteman.contrib.bmunit.agent.inhibit>true</org.jboss.byteman.contrib.bmunit.agent.inhibit>
<org.jboss.byteman.contrib.bmunit.agent.port>9091</org.jboss.byteman.contrib.bmunit.agent.port>
</systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
17 changes: 17 additions & 0 deletions mail/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@

<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
Expand Down
4 changes: 4 additions & 0 deletions messaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 4 additions & 0 deletions modcluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
<include>**/*TestCase.java</include>
</includes>
<enableAssertions>false</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class ChildFirstClassLoaderBuilder {

//Use this property on the lightning runs to make sure that people have set the root and cache properties
private static final String STRICT_PROPERTY = "org.jboss.model.test.cache.strict";
private static final String ROOT_PROPERTY = "org.jboss.model.test.root";
private static final String ROOT_PROPERTY = "org.jboss.model.test.cache.root";
private static final String CACHE_FOLDER_PROPERTY = "org.jboss.model.test.classpath.cache";


Expand Down
17 changes: 17 additions & 0 deletions naming/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@

<name>JBoss Application Server: Naming Subsystem</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jboss.as</groupId>
Expand Down
4 changes: 4 additions & 0 deletions osgi/service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@
<value>org.jboss.logmanager.LogManager</value>
</property>
</systemProperties>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
17 changes: 17 additions & 0 deletions pojo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@

<name>JBoss Application Server: POJO Subsystem</name>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<enableAssertions>true</enableAssertions>
<systemPropertyVariables>
<org.jboss.model.test.cache.root>${org.jboss.model.test.cache.root}</org.jboss.model.test.cache.root>
<org.jboss.model.test.classpath.cache>${org.jboss.model.test.classpath.cache}</org.jboss.model.test.classpath.cache>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.jboss</groupId>
Expand Down
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,15 @@
<!-- tools.jar location, this needs to be overriden on OSX -->
<com.sun.tools.path>${java.home}/../lib/tools.jar</com.sun.tools.path>

<!--
See ChildFirstClassLoaderBuilder in model-test for the explanation of the org.jboss.model.test.cache.root and org.jboss.model.test.classpath.cache properties.
If used in conjunction with org.jboss.model.test.classpath.cache -Dorg.jboss.model.test.cache.strict on the command line, transformers tests must
propagate these to the test when run
-->
<!-- The name of the root checkout folder to create org.jboss.model.test.classpath.cache under for subsystem-test and core-model-test -->
<org.jboss.model.test.root>jboss-as</org.jboss.model.test.root>
<org.jboss.model.test.cache.root>jboss-as</org.jboss.model.test.cache.root>
<!-- Location relative to root that will be used for the cached legacy classpaths used by subsystem-test and core-model-test-->
<org.jboss.model.test.classpath.cache>target/classpath</org.jboss.model.test.classpath.cache>
<org.jboss.model.test.classpath.cache>target/model-test-classpath-cache</org.jboss.model.test.classpath.cache>
</properties>

<modules>
Expand Down
Loading

0 comments on commit ab48d70

Please sign in to comment.