Skip to content

Commit

Permalink
Use AddressSanitizer for test
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasy-peak committed Sep 2, 2024
1 parent 6ca977e commit 20e1550
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test_xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,69 +9,69 @@ add_requires("cppzmq", {system = false})
add_requires("msgpack-cxx", {system = false})

set_policy("check.auto_ignore_flags", false)
add_cxflags("-O2 -Wall -Wextra -pedantic-errors -Wno-missing-field-initializers -Wno-ignored-qualifiers")
add_cxflags("-O2 -Wall -Wextra -pedantic-errors -Wno-missing-field-initializers -Wno-ignored-qualifiers -fsanitize=address")
add_includedirs("./out/include")

target("bi")
set_languages("c++17")
set_kind("binary")
add_files("test/cpp/bi.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("coro_bi")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/coro_bi.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("coro_frpc_bi")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/coro_frpc_bi.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("uni_pub_sub")
set_languages("c++17")
set_kind("binary")
add_files("test/cpp/uni_pub_sub.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("coro_uni_pub_sub")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/uni_pub_sub.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("uni_push_pull")
set_languages("c++17")
set_kind("binary")
add_files("test/cpp/uni_push_pull.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("coro_uni_push_pull")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/uni_push_pull.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

target("coro_bi_stream")
set_languages("c++20")
set_kind("binary")
add_files("test/cpp/bi_stream.cpp")
add_packages("msgpack-cxx", "nlohmann_json", "cppzmq", "spdlog", "asio")
add_syslinks("pthread", "uuid")
add_syslinks("pthread", "uuid", "asan")
target_end()

0 comments on commit 20e1550

Please sign in to comment.