Browse Source

[tests] skip mod-secdownload HMAC-SHA1,HMAC-SHA256

skip mod-secdownload.t HMAC-SHA1, HMAC-SHA256 tests if crypto algorithms
are not available (e.g. lighttpd build without openssl)
personal/stbuehler/ci-build
Glenn Strauss 3 years ago
parent
commit
d5774fc6b3
  1. 11
      tests/mod-secdownload.t

11
tests/mod-secdownload.t

@ -80,6 +80,15 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ];
ok($tf->handle_http($t) == 0, 'secdownload - timeout (md5)');
if (!$tf->has_feature("SSL support")) {
for (1..4) { ok(1, "secdownload (hmac-sha1) (skipped) - (missing SSL support)"); }
for (1..5) { ok(1, "secdownload (hmac-sha256) (skipped) - (missing SSL support)"); }
}
else {
## HMAC-SHA1
$f = "/index.html";
$thex = sprintf("%08x", time);
@ -192,6 +201,8 @@ $t->{RESPONSE} = [ { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 404 } ];
ok($tf->handle_http($t) == 0, 'secdownload - timeout (hmac-sha256)');
} # SKIP if lighttpd built without crypto algorithms (e.g. without openssl)
## THE END
ok($tf->stop_proc == 0, "Stopping lighttpd");

Loading…
Cancel
Save