blob: e4dc00da23656a90868bf887d3e7cfd87f425982 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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="Test Distribution" default="all" basedir=".">
<property name="test.required.modules" value=""/>
<property name="test.types" value="unit:qa-functional"/>
<property name="test.result.merged.dir" value="results"/>
<target name="all" description="Run all tests">
<subant genericantfile="all-tests.xml" buildpath="${test.types}">
<property name="test.required.modules" value="${test.required.modules}"/>
<!-- #208907 - Enforce order of test execution in an implicit suite to prevent
failures caused by the unpredictable results of Class.getDeclaredMethods. -->
<property name="test-sys-prop.NbTestCase.order" value="a-z"/>
</subant>
</target>
<target name="merge-results" description="Merge results for unit and qa-functional test into one dir">
<delete dir="${test.result.merged.dir}"/>
<mkdir dir="${test.result.merged.dir}"/>
<junitreport todir="${test.result.merged.dir}">
<fileset dir=".">
<include name="*/results/TEST-*.xml"/>
</fileset>
<report format="frames" todir="${test.result.merged.dir}/html"/>
</junitreport>
</target>
</project>