Browse Source

tabs to spaces

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@370830 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
b2fb37cdb1
1 changed files with 83 additions and 84 deletions
  1. +83
    -84
      src/etc/testcases/types/selectors.xml

+ 83
- 84
src/etc/testcases/types/selectors.xml View File

@@ -261,92 +261,91 @@
<property name="fs.full.value" refid="fs.full"/> <property name="fs.full.value" refid="fs.full"/>
</target> </target>


<target name="modifiedselectortest-ResourceSimple">
<fail message="Didnt get the required numbers of Resources.">
<condition>
<not>
<resourcecount when="equal" count="3">
<restrict>
<resources>
<file file="foo" />
<resource name="foo" />
<file file="foo" basedir="${basedir}" />
</resources>
<modified selres="true" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</target>

<target name="modifiedselectortest-ResourceSelresTrue">
<fail message="Got the Resource, but should.">
<condition>
<not>
<resourcecount when="equal" count="1">
<restrict>
<resources>
<resource name="notExisting" />
</resources>
<modified selres="true" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</target>

<target name="modifiedselectortest-ResourceSelresFalse">
<fail message="Got the Resource, but should not.">
<condition>
<not>
<resourcecount when="equal" count="0">
<restrict>
<resources>
<resource name="notExisting" />
</resources>
<modified selres="false" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</target>


<target name="modifiedselectortest-ResourceSimple">
<fail message="Didnt get the required numbers of Resources.">
<condition>
<not>
<resourcecount when="equal" count="3">
<restrict>
<resources>
<file file="foo" />
<resource name="foo" />
<file file="foo" basedir="${basedir}" />
</resources>
<modified selres="true" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</target>
<target name="modifiedselectortest-scenario-resourceSimple" depends="modifiedselectortest-scenario-prepare">
<macrodef name="check">
<attribute name="count"/>
<attribute name="message"/>
<sequential>
<fail message="@{message}">
<condition>
<not>
<resourcecount when="equal" count="@{count}">
<restrict>
<resources>
<fileset dir="${test.dir}/src"/>
</resources>
<modified selres="false" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</sequential>
</macrodef>
<!-- select first time and create cachefile -->
<check count="14" message="Initial set of files not ok."/>


<target name="modifiedselectortest-ResourceSelresTrue">
<fail message="Got the Resource, but should.">
<condition>
<not>
<resourcecount when="equal" count="1">
<restrict>
<resources>
<resource name="notExisting" />
</resources>
<modified selres="true" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</target>
<!-- check second time: nothing should be selected -->
<check count="0" message="Selected files but shouldnt."/>


<target name="modifiedselectortest-ResourceSelresFalse">
<fail message="Got the Resource, but should not.">
<condition>
<not>
<resourcecount when="equal" count="0">
<restrict>
<resources>
<resource name="notExisting" />
</resources>
<modified selres="false" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</target>
<!-- 'modify' the source files -->
<antcall target="modifiedselectortest-scenario-makeDirty"/>


<target name="modifiedselectortest-scenario-resourceSimple" depends="modifiedselectortest-scenario-prepare">
<macrodef name="check">
<attribute name="count"/>
<attribute name="message"/>
<sequential>
<fail message="@{message}">
<condition>
<not>
<resourcecount when="equal" count="@{count}">
<restrict>
<resources>
<fileset dir="${test.dir}/src"/>
</resources>
<modified selres="false" xmlns="antlib:org.apache.tools.ant.types.resources.selectors"/>
</restrict>
</resourcecount>
</not>
</condition>
</fail>
</sequential>
</macrodef>
<!-- select first time and create cachefile -->
<check count="14" message="Initial set of files not ok."/>
<!-- check second time: nothing should be selected -->
<check count="0" message="Selected files but shouldnt."/>
<!-- 'modify' the source files -->
<antcall target="modifiedselectortest-scenario-makeDirty"/>
<!-- copy third time: only the files with new CONTENT should be copied -->
<check count="2" message="Didnt select the 2 modified files."/>
</target>


<!-- copy third time: only the files with new CONTENT should be copied -->
<check count="2" message="Didnt select the 2 modified files."/>
</target>
</project>
</project>

Loading…
Cancel
Save