aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-07-06 11:11:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-07-06 11:49:50 +0200
commit759efe7b51d1a2d5681839d6fb23b21b27de91ba (patch)
tree39ef858bd33bc5bbb74ad0bc45a40114f557fafb
parent6b0aa00abb8836bb4328f07cbe75421e21cd341e (diff)
runtests: support "threaded-resolver" as a feature
... to let tests require it or skip if present
-rw-r--r--tests/FILEFORMAT1
-rwxr-xr-xtests/runtests.pl10
2 files changed, 11 insertions, 0 deletions
diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT
index 5c1e96f53..75e561ae8 100644
--- a/tests/FILEFORMAT
+++ b/tests/FILEFORMAT
@@ -239,6 +239,7 @@ SSLpinning
SSPI
TLS-SRP
TrackMemory
+threaded-resolver
unittest
unix-sockets
WinSSL
diff --git a/tests/runtests.pl b/tests/runtests.pl
index a83700200..212e726e7 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -3264,6 +3264,11 @@ sub singletest {
next;
}
}
+ elsif($1 eq "threaded-resolver") {
+ if($has_threadedres) {
+ next;
+ }
+ }
elsif($1 eq "PSL") {
if($has_psl) {
next;
@@ -3410,6 +3415,11 @@ sub singletest {
next;
}
}
+ elsif($1 eq "threaded-resolver") {
+ if(!$has_threadedres) {
+ next;
+ }
+ }
else {
next;
}