Skip to content

Commit

Permalink
runtests.pl: Added support for SPNEGO
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-caveman2k committed Nov 22, 2014
1 parent 8cc7e74 commit 2e2f981
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/FILEFORMAT
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ http2
SSPI
GSS-API
Kerberos
SPNEGO

as well as each protocol that curl supports. A protocol only needs to be
specified if it is different from the server (useful when the server
Expand Down
15 changes: 15 additions & 0 deletions tests/runtests.pl
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ BEGIN
my $has_sspi; # set if libcurl is built with SSPI support
my $has_gssapi; # set if libcurl is built with a GSS-API library
my $has_kerberos;# set if libcurl is built with Kerberos support
my $has_spnego; # set if libcurl is built with SPNEGO support
my $has_charconv;# set if libcurl is built with CharConv support
my $has_tls_srp; # set if libcurl is built with TLS-SRP support
my $has_metalink;# set if curl is built with Metalink support
Expand Down Expand Up @@ -2408,6 +2409,10 @@ sub checksystem {
# Kerberos enabled
$has_kerberos=1;
}
if($feat =~ /SPNEGO/i) {
# SPNEGO enabled
$has_spnego=1;
}
if($feat =~ /CharConv/i) {
# CharConv enabled
$has_charconv=1;
Expand Down Expand Up @@ -2879,6 +2884,11 @@ sub singletest {
next;
}
}
elsif($1 eq "SPNEGO") {
if($has_spnego) {
next;
}
}
elsif($1 eq "getrlimit") {
if($has_getrlimit) {
next;
Expand Down Expand Up @@ -3009,6 +3019,11 @@ sub singletest {
next;
}
}
elsif($1 eq "SPNEGO") {
if(!$has_spnego) {
next;
}
}
elsif($1 eq "getrlimit") {
if(!$has_getrlimit) {
next;
Expand Down

0 comments on commit 2e2f981

Please sign in to comment.