]> sjero.net Git - wget/blobdiff - tests/run-px
Test for -c shorter content (#23613).
[wget] / tests / run-px
index fd1c40acdadbdf39a9ff1a4aeb1816fa278de716..50db5819f7b4792e7d413dbce855998af24284b9 100755 (executable)
@@ -10,9 +10,9 @@ my @tests = (
     'Test-proxied-https-auth.px',
     'Test-N-HTTP-Content-Disposition.px',
     'Test--spider.px',
-
     'Test-c-full.px',
     'Test-c-partial.px',
+    'Test-c-shorter.px',
     'Test-c.px',
     'Test-E-k-K.px',
     'Test-E-k.px',
@@ -21,6 +21,8 @@ my @tests = (
     'Test-HTTP-Content-Disposition-2.px',
     'Test-HTTP-Content-Disposition.px',
     'Test-N-current.px',
+    'Test-N-smaller.px',
+    'Test-N-no-info.px',
     'Test-N--no-content-disposition.px',
     'Test-N--no-content-disposition-trivial.px',
     'Test--no-content-disposition.px',
@@ -35,6 +37,7 @@ my @tests = (
     'Test-O--no-content-disposition-trivial.px',
     'Test-O-nonexisting.px',
     'Test-O.px',
+    'Test-O-nc.px',
     'Test-Restrict-Lowercase.px',
     'Test-Restrict-Uppercase.px',
     'Test--spider-fail.px',
@@ -60,3 +63,10 @@ for (my $i=0; $i != @tests; ++$i) {
     }
     print "$tests[$i]\n";
 }
+
+print "\n";
+print scalar(@results) . " tests were run\n";
+print scalar(grep $_ == 0, @results) . " PASS\n";
+print scalar(grep $_ != 0, @results) . " FAIL\n";
+
+exit scalar (grep $_ != 0, @results);