diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-29 16:02:10 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-29 16:09:55 +0200 |
commit | febd59859725e8792b02374daa099ffb3972624d (patch) | |
tree | 912ba32dba0b421c4894f6779bf1991bf16d3c13 /tests/data/test2017 | |
parent | 7747136421e9cd498a00e841f1c236c8e6cb78b5 (diff) |
test2017 to test2022: more metalink tests
With this commit, checks done in previous test2017 are now done in test2018.
Whole range test2017 to test2022 DISABLED until configure is capable of
requiring a new-enough metalink library.
Don't try these without mentioned check in place!
Diffstat (limited to 'tests/data/test2017')
-rw-r--r-- | tests/data/test2017 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/data/test2017 b/tests/data/test2017 index f4312c47b..52df14e38 100644 --- a/tests/data/test2017 +++ b/tests/data/test2017 @@ -35,7 +35,7 @@ file Metalink </features> <name> -Metalink local XML file, attempt questionable file name +Metalink local XML file, attempt UNIX home path traversal </name> <command option="no-output,no-include"> --metalink file://%PWD/log/test2017.metalink @@ -45,7 +45,7 @@ Metalink local XML file, attempt questionable file name <?xml version="1.0" encoding="utf-8"?> <metalink version="3.0" xmlns="http://www.metalinker.org/"> <files> - <file name="log/.download2017"> + <file name="~/download2017"> <verification> <hash type="sha256">c7d03debe90ca29492203ea921d76941fa98640cf3b744f2a16c9b58465eab82</hash> </verification> @@ -57,7 +57,7 @@ Metalink local XML file, attempt questionable file name </metalink> </file> <postcheck> -perl %SRCDIR/libtest/notexists.pl log/2017 log/name2017 log/.download2017 +perl %SRCDIR/libtest/notexists.pl log/2017 log/name2017 </postcheck> </client> @@ -72,7 +72,7 @@ Metalink: parsing (file://%PWD/log/test2017.metalink) WARNING (missing or invali Metalink: parsing (file://%PWD/log/test2017.metalink) FAILED </file2> <stripfile2> -$_ = '' if ($_ !~ /^Metalink: /) +$_ = '' if (($_ !~ /^Metalink: /) && ($_ !~ /error/i) && ($_ !~ /warn/i)) </stripfile2> </verify> </testcase> |