1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -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 Metalink: validating (log/download2005) OK
</file3> </file3>
<stripfile3> <stripfile3>
$_ = '' if ($_ !~ /^Metalink: /) $_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i))
</stripfile3> </stripfile3>
</verify> </verify>
</testcase> </testcase>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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