1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

test2005 to test2016: improve failure detection

This commit is contained in:
Yang Tse 2012-06-29 15:44:50 +02:00
parent dd707b746f
commit 7747136421
12 changed files with 16 additions and 16 deletions

View File

@ -87,7 +87,7 @@ Metalink: validating (log/download2005)...
Metalink: validating (log/download2005) OK
</file3>
<stripfile3>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile3>
</verify>
</testcase>

View File

@ -106,7 +106,7 @@ Metalink: validating (log/download2006)...
Metalink: validating (log/download2006) OK
</file4>
<stripfile4>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile4>
</verify>
</testcase>

View File

@ -107,7 +107,7 @@ Metalink: validating (log/download2007)...
Metalink: validating (log/download2007) OK
</file4>
<stripfile4>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile4>
</verify>
</testcase>

View File

@ -99,7 +99,7 @@ Metalink: validating (log/download2008)...
Metalink: validating (log/download2008) OK
</file4>
<stripfile4>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile4>
</verify>
</testcase>

View File

@ -100,7 +100,7 @@ Metalink: validating (log/download2009)...
Metalink: validating (log/download2009) OK
</file4>
<stripfile4>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile4>
</verify>
</testcase>

View File

@ -99,7 +99,7 @@ Metalink: validating (log/download2010)...
Metalink: validating (log/download2010) OK
</file4>
<stripfile4>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile4>
</verify>
</testcase>

View File

@ -87,7 +87,7 @@ Metalink: validating (log/download2011)...
Metalink: validating (log/download2011) FAILED (digest mismatch)
</file3>
<stripfile3>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile3>
</verify>
</testcase>

View File

@ -86,7 +86,7 @@ Metalink: validating (log/download2012)...
Metalink: validating (log/download2012) FAILED (digest missing)
</file3>
<stripfile3>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile3>
</verify>
</testcase>

View File

@ -35,7 +35,7 @@ file
Metalink
</features>
<name>
Metalink local XML file, attempt absolute path
Metalink local XML file, attempt UNIX absolute path
</name>
<command option="no-output,no-include">
--metalink file://%PWD/log/test2013.metalink
@ -72,7 +72,7 @@ Metalink: parsing (file://%PWD/log/test2013.metalink) WARNING (missing or invali
Metalink: parsing (file://%PWD/log/test2013.metalink) FAILED
</file2>
<stripfile2>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile2>
</verify>
</testcase>

View File

@ -35,7 +35,7 @@ file
Metalink
</features>
<name>
Metalink local XML file, attempt path relative to current
Metalink local XML file, attempt UNIX path relative to current
</name>
<command option="no-output,no-include">
--metalink file://%PWD/log/test2014.metalink
@ -72,7 +72,7 @@ Metalink: parsing (file://%PWD/log/test2014.metalink) WARNING (missing or invali
Metalink: parsing (file://%PWD/log/test2014.metalink) FAILED
</file2>
<stripfile2>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile2>
</verify>
</testcase>

View File

@ -35,7 +35,7 @@ file
Metalink
</features>
<name>
Metalink local XML file, attempt path relative to upper
Metalink local XML file, attempt UNIX path relative to upper
</name>
<command option="no-output,no-include">
--metalink file://%PWD/log/test2015.metalink
@ -72,7 +72,7 @@ Metalink: parsing (file://%PWD/log/test2015.metalink) WARNING (missing or invali
Metalink: parsing (file://%PWD/log/test2015.metalink) FAILED
</file2>
<stripfile2>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile2>
</verify>
</testcase>

View File

@ -35,7 +35,7 @@ file
Metalink
</features>
<name>
Metalink local XML file, attempt path traversal
Metalink local XML file, attempt UNIX path traversal
</name>
<command option="no-output,no-include">
--metalink file://%PWD/log/test2016.metalink
@ -72,7 +72,7 @@ Metalink: parsing (file://%PWD/log/test2016.metalink) WARNING (missing or invali
Metalink: parsing (file://%PWD/log/test2016.metalink) FAILED
</file2>
<stripfile2>
$_ = '' if ($_ !~ /^Metalink: /)
$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile2>
</verify>
</testcase>