Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 26 additions & 25 deletions .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ def main(ctx):
'gcc >=13.0',
'clang >=17.0',
# 'msvc >=14.1',
'arm64-gcc latest',
'arm64-clang latest'
# 'x86-msvc latest'
],
'>=20',
cmake=False,
docs=False,
coverage=False,
asan=False,
cache_dir='cache')
# Note: liburing-dev is not added to generate()'s package list.
# generate() emits jobs on Ubuntu focal (which has no liburing-dev
Expand Down Expand Up @@ -60,33 +61,33 @@ def main(ctx):
# globalenv=globalenv),
# ]

jobs += [
freebsd_cxx("clang-22", "clang++-22",
buildscript="drone", buildtype="boost",
freebsd_version="15.0",
environment={
'B2_TOOLSET': 'clang-22',
'B2_CXXSTD': '20',
},
globalenv=globalenv),
]
# jobs += [
# freebsd_cxx("clang-22", "clang++-22",
# buildscript="drone", buildtype="boost",
# freebsd_version="15.0",
# environment={
# 'B2_TOOLSET': 'clang-22',
# 'B2_CXXSTD': '20',
# },
# globalenv=globalenv),
# ]

# Jobs not covered by generate()
jobs += [
linux_cxx("Valgrind", "clang++-17", packages="clang-17 libc6-dbg libstdc++-12-dev liburing-dev",
llvm_os="jammy", llvm_ver="17",
buildscript="drone", buildtype="valgrind",
image="cppalliance/droneubuntu2204:1",
environment={
'COMMENT': 'valgrind',
'B2_TOOLSET': 'clang-17',
'B2_CXXSTD': '20',
'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1',
'B2_VARIANT': 'debug',
'B2_TESTFLAGS': 'testing.launcher=valgrind',
'VALGRIND_OPTS': '--error-exitcode=1',
},
globalenv=globalenv),
# linux_cxx("Valgrind", "clang++-17", packages="clang-17 libc6-dbg libstdc++-12-dev liburing-dev",
# llvm_os="jammy", llvm_ver="17",
# buildscript="drone", buildtype="valgrind",
# image="cppalliance/droneubuntu2204:1",
# environment={
# 'COMMENT': 'valgrind',
# 'B2_TOOLSET': 'clang-17',
# 'B2_CXXSTD': '20',
# 'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1',
# 'B2_VARIANT': 'debug',
# 'B2_TESTFLAGS': 'testing.launcher=valgrind',
# 'VALGRIND_OPTS': '--error-exitcode=1',
# },
# globalenv=globalenv),

# Note: no liburing-dev on the Drone cmake jobs even though the
# noble image has 2.5+. Docker's default seccomp profile blocks
Expand Down
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ function(boost_burl_setup_properties target)
target_include_directories(${target} PUBLIC "${PROJECT_SOURCE_DIR}/include")
target_include_directories(${target} PRIVATE "${PROJECT_SOURCE_DIR}")
target_link_libraries(${target} PUBLIC ${BOOST_BURL_DEPENDENCIES})
# Link corosio_openssl for TLS support when available.
# In superproject builds, corosio is processed after burl (alphabetically),
# so the target may not exist at configure time. Use $<TARGET_NAME_IF_EXISTS:...>
# which evaluates at generation time when all targets exist.
target_link_libraries(${target} PUBLIC $<TARGET_NAME_IF_EXISTS:Boost::corosio_openssl>)
target_compile_definitions(${target} PUBLIC BOOST_BURL_NO_LIB)
target_compile_definitions(${target} PRIVATE BOOST_BURL_SOURCE)
Expand Down
3 changes: 0 additions & 3 deletions src/cookie_jar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ domain_match(
if(!tailmatch)
return host == domain;

if(domain.starts_with('.'))
domain.remove_prefix(1);

if(host.ends_with(domain))
{
if(host.size() == domain.size())
Expand Down
15 changes: 4 additions & 11 deletions test/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@ list(APPEND PFILES
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "" FILES ${PFILES})

add_executable(boost_burl_tests ${PFILES})
target_link_libraries(
boost_burl_tests PRIVATE
target_link_libraries(boost_burl_tests PRIVATE
boost_capy_test_suite_main
Boost::burl)

if (TARGET Boost::http_zlib)
target_link_libraries(boost_burl_tests PRIVATE Boost::http_zlib)
endif()

if (TARGET Boost::http_brotli)
target_link_libraries(boost_burl_tests PRIVATE Boost::http_brotli)
endif()
Boost::burl
$<TARGET_NAME_IF_EXISTS:Boost::http_zlib>
$<TARGET_NAME_IF_EXISTS:Boost::http_brotli>)

target_include_directories(boost_burl_tests PRIVATE . ../../)

Expand Down
5 changes: 3 additions & 2 deletions test/unit/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,8 @@ class client_test
capy::test::run_blocking()([&]() -> capy::task<>
{
auto cfg = net.config();
cfg.gzip = true;
cfg.gzip = true;
cfg.deflate = true;
client c(
co_await capy::this_coro::executor,
corosio::tls_context(),
Expand All @@ -736,7 +737,7 @@ class client_test
}());

BOOST_TEST(
net.written(0).find("Accept-Encoding: gzip\r\n") !=
net.written(0).find("Accept-Encoding: deflate, gzip\r\n") !=
std::string::npos);
}

Expand Down
Loading
Loading