137 lines
6.2 KiB
XML
137 lines
6.2 KiB
XML
<?xml version="1.0"?>
|
|
<!--
|
|
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.
|
|
|
|
$Header:$
|
|
-->
|
|
|
|
<!--
|
|
This Ant file is the top-level build support for running NetUI tests against
|
|
a Beehive distribution.
|
|
|
|
todo: support Struts 1.1
|
|
- custom, test-specifc application build
|
|
todo: support multiple test recorder output directories
|
|
- per-webapp property
|
|
-->
|
|
<project name="Beehive/NetUI/distribution-test" default="run.tests" basedir=".">
|
|
|
|
<import file="../test-imports.xml"/>
|
|
<import file="ant/netui-test-imports.xml"/>
|
|
|
|
<property name="drt.testResults.dir" location="${netui.testResults.dir}/junit-drt.testResults"/>
|
|
<property name="bvt.testResults.dir" location="${netui.testResults.dir}/junit-bvt.testResults"/>
|
|
<property name="compiler.testResults.dir" location="${netui.testResults.dir}/compiler.testResults"/>
|
|
|
|
<!-- ================================================================ -->
|
|
<!-- -->
|
|
<!-- Target to run all drt/bvt tests -->
|
|
<!-- -->
|
|
<!-- ================================================================ -->
|
|
<target name="run.tests" description="Run all tests">
|
|
<echo>Running Beehive distribution tests against a Beehive distribution located at ${dist.home}</echo>
|
|
|
|
<fail unless="dist.home" message="Could not run tests on distribution archive; please dist.home was not specified"/>
|
|
|
|
<antcall target="junit.drt"/>
|
|
|
|
<!-- coreWeb + Struts 1.2 DRT -->
|
|
<ant dir="webapps/drt" antfile="build.xml" target="drt" inheritAll="false">
|
|
<property name="beehive.home" location="${dist.home}"/>
|
|
<property name="xbean.jar" location="../external/apache-xbean.jar"/>
|
|
<property name="jsr173.jar" location="../external/jsr173_1.0_api.jar"/>
|
|
<property name="report.name" value="coreWeb-drt-struts12"/>
|
|
</ant>
|
|
|
|
<antcall target="compiler.bvt"/>
|
|
|
|
<!-- coreWeb + Struts 1.2 BVT -->
|
|
<ant dir="webapps/drt" antfile="build.xml" target="bvt" inheritAll="false">
|
|
<property name="beehive.home" location="${dist.home}"/>
|
|
<property name="xbean.jar" location="../external/apache-xbean.jar"/>
|
|
<property name="jsr173.jar" location="../external/jsr173_1.0_api.jar"/>
|
|
<property name="report.name" value="coreWeb-bvt-struts12"/>
|
|
</ant>
|
|
|
|
<!-- coreWeb + Struts 1.1 BVT -->
|
|
<ant dir="webapps/drt" antfile="build.xml" target="bvt.struts11" inheritAll="false">
|
|
<property name="beehive.home" location="${dist.home}"/>
|
|
<property name="xbean.jar" location="../external/apache-xbean.jar"/>
|
|
<property name="jsr173.jar" location="../external/jsr173_1.0_api.jar"/>
|
|
<property name="report.name" value="coreWeb-bvt-struts11"/>
|
|
</ant>
|
|
|
|
<!-- controls + Struts 1.2 BVT -->
|
|
<ant dir="webapps/controls" antfile="build.xml" target="bvt" inheritAll="false">
|
|
<property name="beehive.home" location="${dist.home}"/>
|
|
<property name="report.name" value="controls-struts12"/>
|
|
</ant>
|
|
|
|
<!-- controls + Struts 1.1 BVT -->
|
|
<!-- todo -->
|
|
|
|
<!-- jsfWeb + Struts 1.2 BVT -->
|
|
<ant dir="webapps/jsf" antfile="build.xml" target="bvt" inheritAll="false">
|
|
<property name="beehive.home" location="${dist.home}"/>
|
|
<property name="report.name" value="jsfWeb-struts12"/>
|
|
</ant>
|
|
|
|
<!-- jsfWeb + Struts 1.1 BVT -->
|
|
<!-- todo -->
|
|
|
|
<!-- urlTemplates + Struts 1.2 BVT -->
|
|
<ant dir="webapps/urlTemplates" antfile="build.xml" target="bvt" inheritAll="false">
|
|
<property name="beehive.home" location="${dist.home}"/>
|
|
<property name="report.name" value="urlTemplates-struts12"/>
|
|
</ant>
|
|
|
|
<!-- urlTemplates + Struts 1.1 BVT -->
|
|
<!-- todo -->
|
|
</target>
|
|
|
|
<!-- ================================================================ -->
|
|
<!-- -->
|
|
<!-- Targets for running JUnit test suites -->
|
|
<!-- -->
|
|
<!-- ================================================================ -->
|
|
<target name="junit.drt" description="Run JUnit drttest suite">
|
|
<ant dir="ant" antfile="junitCore.xml" target="run.tests" inheritAll="false">
|
|
<property name="testout.dir" location="${drt.testResults.dir}"/>
|
|
<property name="formatter.type" value="xml"/>
|
|
<property name="fail" value="true"/>
|
|
</ant>
|
|
</target>
|
|
|
|
<target name="junit.bvt" description="Run JUnit bvt test suite">
|
|
<ant dir="ant" antfile="junitCore.xml" target="run.tests" inheritAll="false">
|
|
<property name="testout.dir" location="${bvt.testResults.dir}"/>
|
|
<property name="formatter.type" value="xml"/>
|
|
<property name="fail" value="false"/>
|
|
<property name="bvt" value="true"/>
|
|
</ant>
|
|
</target>
|
|
|
|
|
|
<target name="compiler.bvt" description="Run Compiler bvt test suite">
|
|
<ant dir="ant" antfile="junitCore.xml" target="run.compiler.tests" inheritAll="false">
|
|
<property name="testout.dir" location="${compiler.testResults.dir}"/>
|
|
<property name="formatter.type" value="xml"/>
|
|
<property name="fail" value="false"/>
|
|
</ant>
|
|
</target>
|
|
|
|
</project>
|