test 2005: add verification of hash checking outcome
authorYang Tse <yangsita@gmail.com>
Thu, 21 Jun 2012 16:21:45 +0000 (18:21 +0200)
committerYang Tse <yangsita@gmail.com>
Thu, 21 Jun 2012 16:32:31 +0000 (18:32 +0200)
tests/data/test2005

index e572329b25a5bf4d4a108d237a3fe4bd1a480123..16867fb401aa9044e4db8db6e17dfd8b0b71af25 100644 (file)
@@ -35,7 +35,7 @@ file
 Metalink
 </features>
  <name>
-Metalink local XML file with HTTP resource
+Metalink local XML file, HTTP resource
  </name>
 <command option="no-output,no-include">
 --metalink file://%PWD/log/test2005.metalink
@@ -78,5 +78,13 @@ Data delivered from an HTTP resource
 </file1>
 <file2 name="log/stdout2005">
 </file2>
+<file3 name="log/stderr2005">
+Metalink: Metalink XML file was parsed successfully
+Metalink: Validating sha-256 checksum (This may take some time)...
+Metalink: log/download2005: OK
+</file3>
+<stripfile3>
+$_ = '' if ($_ !~ /^Metalink: /)
+</stripfile3>
 </verify>
 </testcase>