mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-15 05:35:00 -05:00
74 lines
2.7 KiB
XML
74 lines
2.7 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 project is used to run the Beehive tests against a Beehive distribution
|
||
|
-->
|
||
|
<project name="Beehive/TestDistribution" default="usage" basedir=".">
|
||
|
|
||
|
<import file="test-imports.xml"/>
|
||
|
|
||
|
<target name="run.tests" description="Run all tests">
|
||
|
<echo>Running Beehive distribution tests against a Beehive distribution located at:</echo>
|
||
|
<echo> ${dist.home}</echo>
|
||
|
|
||
|
<fail unless="dist.home" message="Could not run tests on distribution archive; please dist.home was not specified"/>
|
||
|
|
||
|
<antcall target="clean"/>
|
||
|
<antcall target="prepare"/>
|
||
|
|
||
|
<antcall target="netui.tests"/>
|
||
|
|
||
|
<echo message="Ensuring that the server shuts down completely. Sleeping for 2 minutes"/>
|
||
|
<sleep minutes="2"/>
|
||
|
|
||
|
<antcall target="controls.tests"/>
|
||
|
</target>
|
||
|
|
||
|
<target name="netui.tests" description="Run netui tests">
|
||
|
<ant dir="${test.home}/netui" antfile="build.xml" inheritAll="false" target="run.tests">
|
||
|
<property name="test.home" location="${test.home}"/>
|
||
|
</ant>
|
||
|
</target>
|
||
|
|
||
|
<target name="controls.tests" description="Run controls tests">
|
||
|
<ant dir="${test.home}/controls/test" antfile="build.xml" inheritAll="false" target="run.tests">
|
||
|
<property name="test.home" location="${test.home}"/>
|
||
|
</ant>
|
||
|
</target>
|
||
|
|
||
|
<target name="clean" description="Clean the build directory">
|
||
|
<delete dir="${build.dir}"/>
|
||
|
</target>
|
||
|
|
||
|
<target name="prepare" description="Prepare the build directory">
|
||
|
<mkdir dir="build"/>
|
||
|
<mkdir dir="build/webapps"/>
|
||
|
<mkdir dir="build/testResults"/>
|
||
|
</target>
|
||
|
|
||
|
<target name="usage" description="Print the usage for this build.xml">
|
||
|
<java fork="no" classname="org.apache.tools.ant.Main">
|
||
|
<arg line="-f ${ant.file} -projecthelp"/>
|
||
|
</java>
|
||
|
</target>
|
||
|
|
||
|
</project>
|