Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1746420476, "reponame":"libwebsockets", "desc":"libwebsockets lightweight C networking library", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets", "f":3, "items": [ {"schema":"libjg2-1", "cid":"840c37f76a8d19563d16b1f6a3f4af07", "commit": {"type":"commit", "time": 1612342199, "time_ofs": 0, "oid_tree": { "oid": "6f64a6971c51829525bf0e6b68e023221ab12a47", "alias": []}, "oid":{ "oid": "8d48d8f3fb8eb559cb23c75a0793ea570243a2a2", "alias": []}, "msg": "ctest: mbedtls: disable spawned server valgrind", "sig_commit": { "git_time": { "time": 1612342199, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1612341263, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "ctest: mbedtls: disable spawned server valgrind\n\nWhen the number of parallel mbedtls ctest runs exceeds the number of free cpus in the\nbuilder, we get too slow when under valgrind to pass the client tests before they\ntimeout.\n" , "diff": "diff --git a/minimal-examples/http-client/minimal-http-client-multi/CMakeLists.txt b/minimal-examples/http-client/minimal-http-client-multi/CMakeLists.txt\nindex 2544b6e..9122a9e 100644\n--- a/minimal-examples/http-client/minimal-http-client-multi/CMakeLists.txt\n+++ b/minimal-examples/http-client/minimal-http-client-multi/CMakeLists.txt\n@@ -9,10 +9,13 @@ set(SAMP lws-minimal-http-client-multi)\n set(SRCS minimal-http-client-multi.c)\n \n set(requirements 1)\n+set(MBEDTLS 0)\n require_lws_config(LWS_ROLE_H1 1 requirements)\n require_lws_config(LWS_WITH_CLIENT 1 requirements)\n require_lws_config(LWS_WITH_TLS 1 requirements)\n \n+require_lws_config(LWS_WITH_MBEDTLS 1 MBEDTLS)\n+\n \n if (requirements)\n \tadd_executable(${SAMP} ${SRCS})\n@@ -51,7 +54,10 @@ if (WIN32)\n \tadd_test(NAME st_hcmp_srv COMMAND cmd.exe /c start /b $\u003cTARGET_FILE:test-server\u003e -s --port 1${PORT_HCM_SRV})\n \tadd_test(NAME ki_hcmp_srv COMMAND taskkill /F /IM $\u003cTARGET_FILE_NAME:test-server\u003e /T)\n else()\n-\tif (VALGRIND)\n+\t#\n+\t# mbedtls is too slow to keep up on some targets, when ctest is in parallel\n+\t#\n+\tif (VALGRIND AND NOT MBEDTLS)\n \t\tadd_test(NAME st_hcm_srv COMMAND\n \t\t\t${CMAKE_SOURCE_DIR}/scripts/ctest-background.sh\n \t\t\t\thcm_srv ${VALGRIND} --tool\u003dmemcheck $\u003cTARGET_FILE:lws-minimal-http-server-tls\u003e\ndiff --git a/minimal-examples/http-client/minimal-http-client-post/CMakeLists.txt b/minimal-examples/http-client/minimal-http-client-post/CMakeLists.txt\nindex f67ef8e..b4e4b74 100644\n--- a/minimal-examples/http-client/minimal-http-client-post/CMakeLists.txt\n+++ b/minimal-examples/http-client/minimal-http-client-post/CMakeLists.txt\n@@ -9,9 +9,12 @@ set(SAMP lws-minimal-http-client-post)\n set(SRCS minimal-http-client-post.c)\n \n set(requirements 1)\n+set(MBEDTLS 0)\n require_lws_config(LWS_ROLE_H1 1 requirements)\n require_lws_config(LWS_WITH_CLIENT 1 requirements)\n \n+require_lws_config(LWS_WITH_MBEDTLS 1 MBEDTLS)\n+\n if (requirements)\n \tadd_executable(${SAMP} ${SRCS})\n \tfind_program(VALGRIND \u0022valgrind\u0022)\n@@ -45,7 +48,10 @@ if (WIN32)\n \tadd_test(NAME st_hcp_srv COMMAND cmd.exe /c start /b $\u003cTARGET_FILE:test-server\u003e -s --port ${PORT_HCP_SRV})\n \tadd_test(NAME ki_hcp_srv COMMAND taskkill /F /IM $\u003cTARGET_FILE_NAME:test-server\u003e /T)\n else()\n-\tif (VALGRIND)\n+\t#\n+\t# mbedtls is too slow to keep up on some targets, when ctest is in parallel\n+\t#\n+\tif (VALGRIND AND NOT MBEDTLS)\n \t\tadd_test(NAME st_hcp_srv COMMAND\n \t\t\t${CMAKE_SOURCE_DIR}/scripts/ctest-background.sh\n \t\t\t\t\thcp_srv ${VALGRIND} --tool\u003dmemcheck \n","s":{"c":1746420476,"u": 4700}} ],"g": 5956,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}