summaryrefslogtreecommitdiff
path: root/src/tests/antunit
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/antunit')
-rw-r--r--src/tests/antunit/taskdefs/pathconvert-test.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/antunit/taskdefs/pathconvert-test.xml b/src/tests/antunit/taskdefs/pathconvert-test.xml
index d43eeac9f..02ca11013 100644
--- a/src/tests/antunit/taskdefs/pathconvert-test.xml
+++ b/src/tests/antunit/taskdefs/pathconvert-test.xml
@@ -109,4 +109,24 @@
<isset property="result" />
</au:assertFalse>
</target>
+
+ <target name="testDest">
+ <au:assertFileDoesntExist file="${output}/destfile" />
+ <pathconvert dest="${output}/destfile">
+ <file file="${ant.file}" />
+ </pathconvert>
+ <au:assertFileExists file="${output}/destfile" />
+ <au:assertTrue>
+ <resourcesmatch astext="true">
+ <file file="${output}/destfile" />
+ <string value="${ant.file}" />
+ </resourcesmatch>
+ </au:assertTrue>
+ </target>
+
+ <target name="testDestPropertyMutex">
+ <au:expectfailure message="@property and @dest are mutually exclusive">
+ <pathconvert property="someprop" dest="somefile" refid="testpath" />
+ </au:expectfailure>
+ </target>
</project>