| <!-- |
| 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 name="RUN HARMONY-5201 Regression Test"> |
| <target name="run-test"> |
| <property name="h5201.pkg" value="org.apache.harmony.drlvm.tests.regression.h5201"/> |
| <property name="h5201.dir" value="org/apache/harmony/drlvm/tests/regression/h5201"/> |
| <property name="h5201.man" value="${java.io.tmpdir}/manifest-5201"/> |
| |
| <macrodef name="run-5201"> |
| <attribute name="cls"/> |
| <attribute name="name"/> |
| <attribute name="res" default="0"/> |
| <sequential> |
| <echo file="${h5201.man}" message="Main-Class: ${h5201.pkg}.@{cls}"/> |
| <jar destfile="${reg.test.class.path}/test5201-@{name}.jar" |
| basedir="${reg.test.class.path}" |
| includes="${h5201.dir}/*.class" |
| manifest="${h5201.man}" /> |
| <run-pjava-test |
| test="org.apache.harmony.drlvm.tests.regression.h5201-@{name}" |
| vmarg="-jar ${reg.test.class.path}/test5201-@{name}.jar" |
| expected-code="@{res}"> |
| </run-pjava-test> |
| </sequential> |
| </macrodef> |
| |
| <run-5201 cls="JarLauncherTest" name="0"/> |
| <run-5201 cls="PackagePrivateClass" name="1"/> |
| <run-5201 cls="JarLauncherTest$Test2" name="2"/> |
| <run-5201 cls="JarLauncherTest$Test3" name="3" res="1"/> |
| <run-5201 cls="JarLauncherTest$Test4" name="4" res="1"/> |
| <run-5201 cls="JarLauncherTest$Test5" name="5" res="1"/> |
| <run-5201 cls="JarLauncherTest$Test6" name="6"/> |
| |
| <delete file="${h5201.man}" quiet="true"/> |
| </target> |
| </project> |
| |