blob: e2b46950f2537e3cdccea92cdcdad4375d451861 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE project [
<!--
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
-->
<!ENTITY commonSetup SYSTEM "file:./../../properties.xml">
<!ENTITY anotherCommonBuild SYSTEM "file:./../../common-build.xml">
<!ENTITY testproperties SYSTEM "file:./build.properties">
]>
<project name="corba_unittest" default="all" basedir=".">
&commonSetup;
&testproperties;
&anotherCommonBuild;
<target name="all" depends="build,run,report"/>
<!-- Classpath definitions -->
<path id="compile.classpath">
<pathelement location="${env.S1AS_HOME}/lib/appserv-rt.jar" />
<path refid="path2testng"/>
</path>
<path id="run.classpath">
<pathelement location="${build.dir}/classes"/>
<path refid="compile.classpath"/>
</path>
<!-- Fileset definitions -->
<fileset id="run.classfileset"
dir="${build.dir}/classes"
includes="corba/timer/*.class">
</fileset>
<fileset id="run.xmlfileset"
dir="."
includes="testng.xml">
</fileset>
<!-- Target defintions -->
<!-- clean -->
<target name="clean" depends="init-common">
<antcall target="clean-common"/>
<delete dir="${build.dir}"/>
<delete dir="gen"/>
<delete dir="test-output"/>
<delete dir="test-report"/>
<delete file="stats.html"/>
</target>
<!-- compile testng tests -->
<target name="compile">
<antcall target="common-compile-testng-tests">
<param name="compile.testng.srcdir" value="tests"/>
<param name="compile.testng.destdir" value="${build.dir}/classes"/>
<param name="compile.testng.classpath" value="compile.classpath"/>
</antcall>
</target>
<target name="build" depends="compile">
</target>
<!-- Run TestNG test via testng.xml -->
<target name="run" depends="compile">
<antcall target="common-run">
<param name="run.testng.classpath" value="run.classpath"/>
<param name="run.testng.xmlfileset" value="run.xmlfileset"/>
</antcall>
</target>
<!-- Run TestNG - specified groups only -->
<target name="run-groups" depends="compile">
<antcall target="common-run-groups">
<param name="run.testng.classpath" value="run.classpath"/>
<param name="run.testng.classfileset" value="run.classfileset"/>
</antcall>
</target>
<!-- Run failed tests from previous run -->
<target name="run-failed" depends="common-run-failed"/>
<!-- Generate report -->
<target name="report" depends="common-report"/>
</project>