blob: 2f26000cc97d51e9b2731734b43ea7bd36dc6ed6 [file] [log] [blame]
<?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.
-->
<project name="recorder-test" default="all" basedir=".">
<property name="recin" location="recorder"/>
<property name="recdir" location="recorder-out"/>
<target name="all" depends="noappend,append,restart,deleterestart"/>
<target name="prepare">
<mkdir dir="${recdir}"/>
</target>
<target name="noappend">
<copy file="${recin}/rectest2.result" tofile="${recdir}/rectest1.log"/>
<record name="${recdir}/rectest1.log" action="start" />
<echo message="some message1"/>
<record name="${recdir}/rectest1.log" action="stop" />
</target>
<target name="append">
<copy file="${recin}/rectest1.result" tofile="${recdir}/rectest2.log"/>
<record name="${recdir}/rectest2.log" append="true" action="start"/>
<echo message="some message2"/>
<record name="${recdir}/rectest2.log" action="stop"/>
</target>
<target name="restart">
<record name="${recdir}/rectest3.log" action="start"/>
<echo message="some message1"/>
<record name="${recdir}/rectest3.log" action="stop"/>
<echo message="some message2"/>
<record name="${recdir}/rectest3.log" action="start"/>
<echo message="some message3"/>
<record name="${recdir}/rectest3.log" action="stop"/>
</target>
<target name="deleterestart">
<record name="${recdir}/rectest4.log" action="start"/>
<echo message="some message1"/>
<record name="${recdir}/rectest4.log" action="stop"/>
<delete file="${recdir}/rectest4.log"/>
<echo message="some message2"/>
<record name="${recdir}/rectest4.log" action="start"/>
<echo message="some message3"/>
<record name="${recdir}/rectest4.log" action="stop"/>
</target>
<target name="cleanup">
<delete dir="${recdir}"/>
</target>
</project>