incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r885419 - in /incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof: pom.xml src/test/ant/test.xml
Date Mon, 30 Nov 2009 13:27:01 GMT
Author: spoole
Date: Mon Nov 30 13:27:01 2009
New Revision: 885419

URL: http://svn.apache.org/viewvc?rev=885419&view=rev
Log:
added hprof test execution for Sun JVMs.  Also redid profile activation checks to be based
on os name.

Added:
    incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/pom.xml
    incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml

Added: incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/pom.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/pom.xml?rev=885419&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/pom.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/pom.xml Mon Nov 30 13:27:01
2009
@@ -0,0 +1,227 @@
+
+	<!--
+		* Licensed to the Apache Software Foundation (ASF) under one * or more
+		contributor license agreements. See the NOTICE file * distributed with
+		this work for additional information * regarding copyright ownership.
+		The ASF licenses this file * to you under the Apache License, Version
+		2.0 (the * "License"); you may not use this file except in compliance
+		* with the License. You may obtain a copy of the License at * *
+		http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by
+		applicable law or agreed to in writing, * software distributed under
+		the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES
+		OR CONDITIONS OF ANY * KIND, either express or implied. See the
+		License for the * specific language governing permissions and
+		limitations * under the License.
+	-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<description>Execute  TCK against  HPROF Dump</description>
+	<parent>
+		<artifactId>kato.tck.execution</artifactId>
+		<groupId>org.apache.kato</groupId>
+		<version>M1-incubating</version>
+	</parent>
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.kato</groupId>
+	<artifactId>kato.tck.execution.hprof</artifactId>
+	<name>Execute  TCK against  HPROF Dump</name>
+	<version>M1-incubating</version>
+
+	<profiles>
+
+		<profile>
+			<id>default</id>
+			<activation>
+				<activeByDefault>true</activeByDefault>
+			</activation>
+			<properties>
+				
+
+				<vmapi.groupid>missing</vmapi.groupid>
+				<vmapi.artifact>missing</vmapi.artifact>
+				<vmapi.version>missing</vmapi.version>
+				<vmapi.type>missing</vmapi.type>
+			</properties>
+		</profile>
+
+		<profile>
+			<id>windows x86</id>
+			<activation>
+				<os>
+					<family>windows</family>
+					<arch>x86</arch>
+				</os>
+			</activation>
+			<properties>
+
+				<vmapi.groupid>org.apache.kato.native</vmapi.groupid>
+				<vmapi.artifact>katovmapi-windows-x86</vmapi.artifact>
+				<vmapi.version>M1-incubating</vmapi.version>
+				<vmapi.type>dll</vmapi.type>
+
+			</properties>
+			<dependencies>
+				<dependency>
+					<artifactId>katovmapi-windows-x86</artifactId>
+					<groupId>org.apache.kato.native</groupId>
+					<version>M1-incubating</version>
+					<type>dll</type>
+					<scope>test</scope>
+				</dependency>
+			</dependencies>
+		</profile>
+
+		<profile>
+			<id>linux-x86</id>
+			<activation>
+				<property>
+				<name>os.name</name>
+				<value>Linux</value>
+				</property>
+			</activation>
+			<properties>
+				<cjvmti.groupid>org.apache.kato.native</cjvmti.groupid>
+				<cjvmti.artifact>libcjvmti-linux-x86</cjvmti.artifact>
+				<cjvmti.version>M1-incubating</cjvmti.version>
+				<cjvmti.type>so</cjvmti.type>
+				<vmapi.groupid>org.apache.kato.native</vmapi.groupid>
+				<vmapi.artifact>libkatovmapi-linux-x86</vmapi.artifact>
+				<vmapi.version>M1-incubating</vmapi.version>
+				<vmapi.type>so</vmapi.type>
+			</properties>
+			<dependencies>
+				<dependency>
+					<artifactId>libkatovmapi-linux-x86</artifactId>
+					<groupId>org.apache.kato.native</groupId>
+					<version>M1-incubating</version>
+					<scope>test</scope>
+					<type>so</type>
+				</dependency>
+
+			</dependencies>
+		</profile>
+	</profiles>
+
+
+	<dependencies>
+
+
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.scenario.142</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.scenario.150</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.scenario.160</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.common.142</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.hprof.api</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.kato</groupId>
+			<artifactId>kato.tck.testcases</artifactId>
+			<version>M1-incubating</version>
+			<scope>test</scope>
+		</dependency>
+	</dependencies>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<configuration>
+					<source>1.6</source>
+					<target>1.6</target>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-antrun-plugin</artifactId>
+				<version>1.3</version>
+				<executions>
+					<execution>
+						<id>setup</id>
+						<phase>generate-test-resources</phase>
+						<configuration>
+							<tasks>
+
+
+								<ant antfile="test.xml" dir="src/test/ant">
+									<property name="path" refid="maven.test.classpath" />
+									<property name="vmapi.agent.path"
+										value="${settings.localRepository}/org/apache/kato/native/${vmapi.artifact}/${vmapi.version}/${vmapi.artifact}-${vmapi.version}.${vmapi.type}"
/>
+									<property name="target" value="${project.build.directory}" />
+								</ant>
+							</tasks>
+
+
+						</configuration>
+						<goals>
+							<goal>run</goal>
+						</goals>
+					</execution>
+				</executions>
+				<dependencies>
+					<dependency>
+						<groupId>ant</groupId>
+						<artifactId>ant-trax</artifactId>
+						<version>1.6.5</version>
+					</dependency>
+					<dependency>
+						<groupId>org.apache.kato</groupId>
+						<artifactId>kato.cjvmti</artifactId>
+						<version>M1-incubating</version>
+					</dependency>
+					<dependency>
+						<groupId>org.apache.kato</groupId>
+						<artifactId>kato.anttasks</artifactId>
+						<version>M1-incubating</version>
+
+					</dependency>
+					<dependency>
+						<groupId>org.apache.kato</groupId>
+						<artifactId>kato.tck.harness</artifactId>
+						<version>M1-incubating</version>
+
+					</dependency>
+					<dependency>
+						<groupId>ant</groupId>
+						<artifactId>ant-junit</artifactId>
+						<version>1.6.5</version>
+					</dependency>
+					<dependency>
+						<groupId>junit</groupId>
+						<artifactId>junit</artifactId>
+						<version>3.8.1</version>
+
+					</dependency>
+				</dependencies>
+			</plugin>
+
+
+
+		</plugins>
+	</build>
+
+</project>
+	
\ No newline at end of file

Added: incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml?rev=885419&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml Mon
Nov 30 13:27:01 2009
@@ -0,0 +1,50 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project default="test">
+	
+	<taskdef resource="org/apache/kato/anttasks/anttasks.properties">
+			<classpath path="${path}" />
+		</taskdef>
+	<target name="test">
+		
+		<!-- create the scenario and cause a cjvmti dump -->
+		
+		<tcksetup dir="${target}">
+			<classpath path="${path}" />
+			<scenario name="142"/>
+			<jvmarg value="-Xrunhprof:file=dump.hprof,format=b"/>
+			<jvmarg value="-Dorg.apache.kato.dumptrigger.librarypath=${vmapi.agent.path}"/>
+		</tcksetup>
+		
+		<!-- run the tck testsuite -->
+		
+		<junit>
+			 <classpath>
+			    <pathelement path="${path}"/>
+			  </classpath>
+
+			<sysproperty key="org.apache.kato.dumppath" value="${target}/dump.hprof"/>
+			<formatter type="plain"/>
+			<formatter type="xml"/>
+			<test name="org.apache.kato.tck.tests.legacy.AllTests" todir="${target}"/>
+		</junit>
+		
+		
+	</target>
+</project>
\ No newline at end of file



Mime
View raw message