mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
minimal: ss: handle usleep in win32
AG: also take care of additional requirements for tests that need h2
This commit is contained in:
parent
5ae132a7b6
commit
2ce2447397
5 changed files with 10 additions and 4 deletions
|
@ -203,6 +203,10 @@ static const char *canned_root_token_payload =
|
|||
|
||||
#endif
|
||||
|
||||
#if defined(WIN32)
|
||||
static void usleep(unsigned long l) { Sleep(l / 1000); }
|
||||
#endif
|
||||
|
||||
/* secure streams payload interface */
|
||||
|
||||
static const uint8_t expected_blob_hash[] = {
|
||||
|
|
|
@ -9,6 +9,7 @@ set(SAMP lws-minimal-secure-streams-hugeurl)
|
|||
|
||||
set(requirements 1)
|
||||
require_lws_config(LWS_ROLE_H1 1 requirements)
|
||||
require_lws_config(LWS_ROLE_H2 1 requirements)
|
||||
require_lws_config(LWS_WITHOUT_CLIENT 0 requirements)
|
||||
require_lws_config(LWS_WITH_SECURE_STREAMS 1 requirements)
|
||||
require_lws_config(LWS_WITH_SECURE_STREAMS_STATIC_POLICY_ONLY 0 requirements)
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <string.h>
|
||||
#include <signal.h>
|
||||
|
||||
static unsigned int timeout_ms = 3000;
|
||||
static unsigned int timeout_ms = 6000;
|
||||
static int interrupted, bad = 1, h1;
|
||||
static lws_state_notify_link_t nl;
|
||||
static size_t hugeurl_size = 4000;
|
||||
|
|
|
@ -9,6 +9,7 @@ set(SAMP lws-minimal-secure-streams-testsfail)
|
|||
|
||||
set(requirements 1)
|
||||
require_lws_config(LWS_ROLE_H1 1 requirements)
|
||||
require_lws_config(LWS_ROLE_H2 1 requirements)
|
||||
require_lws_config(LWS_WITHOUT_CLIENT 0 requirements)
|
||||
require_lws_config(LWS_WITH_SECURE_STREAMS 1 requirements)
|
||||
require_lws_config(LWS_WITH_SECURE_STREAMS_STATIC_POLICY_ONLY 0 requirements)
|
||||
|
@ -31,7 +32,7 @@ if (requirements)
|
|||
set_tests_properties(ss-tf
|
||||
PROPERTIES
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/minimal-examples-lowlevel/secure-streams/minimal-secure-streams-testsfail
|
||||
TIMEOUT 440)
|
||||
TIMEOUT 640)
|
||||
|
||||
if (HAS_LWS_WITH_SECURE_STREAMS_PROXY_API OR LWS_WITH_SECURE_STREAMS_PROXY_API)
|
||||
|
||||
|
@ -74,7 +75,7 @@ if (requirements)
|
|||
set_tests_properties(sspc-minimaltf PROPERTIES
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/minimal-examples-lowlevel/secure-streams/minimal-secure-streams-testsfail
|
||||
FIXTURES_REQUIRED "sstfproxy"
|
||||
TIMEOUT 440)
|
||||
TIMEOUT 640)
|
||||
|
||||
endif()
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"sx-hello_world": {
|
||||
"endpoint": "warmcat.com",
|
||||
"port": 443,
|
||||
"protocol": "h2",
|
||||
"protocol": "h1",
|
||||
"http_method": "GET",
|
||||
"http_url": "index.html",
|
||||
"tls": true,
|
||||
|
|
Loading…
Add table
Reference in a new issue