You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2010/01/11 19:12:54 UTC

svn commit: r898011 - in /incubator/kato/trunk/org.apache.kato: kato.native/kato.native.cjvmti/ kato.native/kato.native.cjvmti/win32/ kato.native/kato.native.vmapi/ kato.tck/execution/hprof/src/test/ant/ kato.tck/execution/jdump/ kato.tck/execution/jdu...

Author: spoole
Date: Mon Jan 11 19:12:53 2010
New Revision: 898011

URL: http://svn.apache.org/viewvc?rev=898011&view=rev
Log:
fixed weird problem with missing ant script for jdump execution tests

Added:
    incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/src/test/ant/test.xml
Modified:
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/   (props changed)
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/   (props changed)
    incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/   (props changed)
    incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml
    incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath

Propchange: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jan 11 19:12:53 2010
@@ -0,0 +1 @@
+target

Propchange: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.cjvmti/win32/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jan 11 19:12:53 2010
@@ -0,0 +1 @@
+target

Propchange: incubator/kato/trunk/org.apache.kato/kato.native/kato.native.vmapi/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jan 11 19:12:53 2010
@@ -0,0 +1 @@
+target

Modified: 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=898011&r1=898010&r2=898011&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/hprof/src/test/ant/test.xml Mon Jan 11 19:12:53 2010
@@ -23,13 +23,13 @@
 		</taskdef>
 	<target name="test">
 		
-		<!-- create the scenario and cause a jdump  -->
+		<!-- create the scenario and cause a hprof dump -->
 		
-		<tcksetup dir="${target}" >
+		<tcksetup dir="${target}">
 			<classpath path="${path}" />
 			<scenario name="142"/>
-			<sysproperty key="javax.tools.diagnositics.vm.dumpinitiator" value="javax.tools.diagnostics.vm.spi.delegates.JavaDumpDelegate"/>
-
+			<jvmarg value="-Xrunhprof:file=dump.hprof,format=b"/>
+			<jvmarg value="-Dorg.apache.kato.dumptrigger.librarypath=${vmapi.agent.path}"/>
 		</tcksetup>
 		
 		<!-- run the tck testsuite -->
@@ -41,7 +41,7 @@
 			    <pathelement path="${path}"/>
 			  </classpath>
 
-			<sysproperty key="org.apache.kato.dumppath" value="${target}/kato.jdump"/>
+			<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="${results}"/>

Modified: incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath?rev=898011&r1=898010&r2=898011&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath (original)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/.classpath Mon Jan 11 19:12:53 2010
@@ -1,9 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
-	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
-	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
-	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>

Added: incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/src/test/ant/test.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/src/test/ant/test.xml?rev=898011&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/src/test/ant/test.xml (added)
+++ incubator/kato/trunk/org.apache.kato/kato.tck/execution/jdump/src/test/ant/test.xml Mon Jan 11 19:12:53 2010
@@ -0,0 +1,52 @@
+<!--
+ * 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 jdump  -->
+		
+		<tcksetup dir="${target}" >
+			<classpath path="${path}" />
+			<scenario name="142"/>
+			<sysproperty key="javax.tools.diagnositics.vm.dumpinitiator" value="javax.tools.diagnostics.vm.spi.delegates.JavaDumpDelegate"/>
+
+		</tcksetup>
+		
+		<!-- run the tck testsuite -->
+		
+		<mkdir dir="${results}"/>
+		
+		<junit haltonerror="true" haltonfailure="true">
+			 <classpath>
+			    <pathelement path="${path}"/>
+			  </classpath>
+
+			<sysproperty key="org.apache.kato.dumppath" value="${target}/kato.jdump"/>
+			<formatter type="plain"/>
+			<formatter type="xml"/>
+			<test name="org.apache.kato.tck.tests.legacy.AllTests" todir="${results}"/>
+		</junit>
+		
+		
+	</target>
+</project>
\ No newline at end of file