ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r805269 - in /ant/sandbox/antlibs/compress/trunk/src/tests/antunit: arentry-test.xml cpioentry-test.xml tarentry-test.xml zipentry-test.xml
Date Tue, 18 Aug 2009 03:53:45 GMT
Author: bodewig
Date: Tue Aug 18 03:53:44 2009
New Revision: 805269

URL: http://svn.apache.org/viewvc?rev=805269&view=rev
Log:
assert timestamps of archive entries

Modified:
    ant/sandbox/antlibs/compress/trunk/src/tests/antunit/arentry-test.xml
    ant/sandbox/antlibs/compress/trunk/src/tests/antunit/cpioentry-test.xml
    ant/sandbox/antlibs/compress/trunk/src/tests/antunit/tarentry-test.xml
    ant/sandbox/antlibs/compress/trunk/src/tests/antunit/zipentry-test.xml

Modified: ant/sandbox/antlibs/compress/trunk/src/tests/antunit/arentry-test.xml
URL: http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/tests/antunit/arentry-test.xml?rev=805269&r1=805268&r2=805269&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/tests/antunit/arentry-test.xml (original)
+++ ant/sandbox/antlibs/compress/trunk/src/tests/antunit/arentry-test.xml Tue Aug 18 03:53:44
2009
@@ -17,6 +17,7 @@
 -->
 <project default="antunit"
          xmlns:au="antlib:org.apache.ant.antunit"
+         xmlns:cond="antlib:org.apache.tools.ant.types.conditions"
          xmlns:cmp="antlib:org.apache.ant.compress">
 
   <import file="antunit-base.xml" />
@@ -37,4 +38,14 @@
        />
   </target>
 
+  <target name="testResourceProperties">
+    <au:assertTrue>
+      <cond:islastmodified datetime="2009-07-31-20:11:13"
+                           pattern="yyyy-MM-dd-HH:mm:ss">
+        <cmp:arentry name="asf-logo.gif">
+          <file file="../resources/asf-logo.gif.ar"/>
+        </cmp:arentry>
+      </cond:islastmodified>
+    </au:assertTrue>
+  </target>
 </project>

Modified: ant/sandbox/antlibs/compress/trunk/src/tests/antunit/cpioentry-test.xml
URL: http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/tests/antunit/cpioentry-test.xml?rev=805269&r1=805268&r2=805269&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/tests/antunit/cpioentry-test.xml (original)
+++ ant/sandbox/antlibs/compress/trunk/src/tests/antunit/cpioentry-test.xml Tue Aug 18 03:53:44
2009
@@ -17,6 +17,7 @@
 -->
 <project default="antunit"
          xmlns:au="antlib:org.apache.ant.antunit"
+         xmlns:cond="antlib:org.apache.tools.ant.types.conditions"
          xmlns:cmp="antlib:org.apache.ant.compress">
 
   <import file="antunit-base.xml" />
@@ -37,4 +38,14 @@
        />
   </target>
 
+  <target name="testResourceProperties">
+    <au:assertTrue>
+      <cond:islastmodified datetime="2009-07-31-20:11:13"
+                           pattern="yyyy-MM-dd-HH:mm:ss">
+        <cmp:cpioentry name="asf-logo.gif">
+          <file file="../resources/asf-logo.gif.cpio"/>
+        </cmp:cpioentry>
+      </cond:islastmodified>
+    </au:assertTrue>
+  </target>
 </project>

Modified: ant/sandbox/antlibs/compress/trunk/src/tests/antunit/tarentry-test.xml
URL: http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/tests/antunit/tarentry-test.xml?rev=805269&r1=805268&r2=805269&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/tests/antunit/tarentry-test.xml (original)
+++ ant/sandbox/antlibs/compress/trunk/src/tests/antunit/tarentry-test.xml Tue Aug 18 03:53:44
2009
@@ -17,6 +17,7 @@
 -->
 <project default="antunit"
          xmlns:au="antlib:org.apache.ant.antunit"
+         xmlns:cond="antlib:org.apache.tools.ant.types.conditions"
          xmlns:cmp="antlib:org.apache.ant.compress">
 
   <import file="antunit-base.xml" />
@@ -53,4 +54,15 @@
        expected="../resources/asf-logo.gif"
        />
   </target>
+
+  <target name="testResourceProperties">
+    <au:assertTrue>
+      <cond:islastmodified datetime="2001-11-19-15:34:20"
+                           pattern="yyyy-MM-dd-HH:mm:ss">
+        <cmp:tarentry name="asf-logo.gif">
+          <file file="../resources/asf-logo.gif.tar"/>
+        </cmp:tarentry>
+      </cond:islastmodified>
+    </au:assertTrue>
+  </target>
 </project>

Modified: ant/sandbox/antlibs/compress/trunk/src/tests/antunit/zipentry-test.xml
URL: http://svn.apache.org/viewvc/ant/sandbox/antlibs/compress/trunk/src/tests/antunit/zipentry-test.xml?rev=805269&r1=805268&r2=805269&view=diff
==============================================================================
--- ant/sandbox/antlibs/compress/trunk/src/tests/antunit/zipentry-test.xml (original)
+++ ant/sandbox/antlibs/compress/trunk/src/tests/antunit/zipentry-test.xml Tue Aug 18 03:53:44
2009
@@ -17,6 +17,7 @@
 -->
 <project default="antunit"
          xmlns:au="antlib:org.apache.ant.antunit"
+         xmlns:cond="antlib:org.apache.tools.ant.types.conditions"
          xmlns:cmp="antlib:org.apache.ant.compress">
 
   <import file="antunit-base.xml" />
@@ -53,4 +54,15 @@
        expected="../resources/asf-logo.gif"
        />
   </target>
+
+  <target name="testResourceProperties">
+    <au:assertTrue>
+      <cond:islastmodified datetime="2001-11-19-15:34:20"
+                           pattern="yyyy-MM-dd-HH:mm:ss">
+        <cmp:zipentry name="asf-logo.gif">
+          <file file="../resources/asf-logo.gif.zip"/>
+        </cmp:zipentry>
+      </cond:islastmodified>
+    </au:assertTrue>
+  </target>
 </project>



Mime
View raw message