Skip to content
Draft
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
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: |
cd build
make test
env CTEST_OUTPUT_ON_FAILURE=1 make test

- name: Lint
if: matrix.os == 'ubuntu-20.04'
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if(TRANTOR_TLS_PROVIDER STREQUAL "None"
endif()
endif()

if(TRANTOR_TLS_PROVIDER STREQUAL "None")
if(TRANTOR_TLS_PROVIDER STREQUAL "None" OR TRANTOR_TLS_PROVIDER STREQUAL "Botan")
set(TRANTOR_SOURCES
${TRANTOR_SOURCES}
trantor/utils/crypto/sha3.cc
Expand Down
13 changes: 13 additions & 0 deletions trantor/unittests/HashUnittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
using namespace trantor;
using namespace trantor::utils;

#ifdef __APPLE__
#include <execinfo.h>
#endif

TEST(Hash, MD5)
{
EXPECT_EQ(toHexString(md5("hello")), "5D41402ABC4B2A76B9719D911017C592");
Expand Down Expand Up @@ -53,6 +57,15 @@ TEST(Hash, BLAKE2b)

int main(int argc, char **argv)
{
#ifdef __APPLE__
signal(SIGILL, [](int) {
void *array[128];
size_t size;
size = backtrace(array, 128);
backtrace_symbols_fd(array, size, STDERR_FILENO);
exit(-1);
});
#endif
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
Loading