Skip to content

Commit

Permalink
Remove shadow testing framework
Browse files Browse the repository at this point in the history
Bitrotten and apparently doesn't work with libuv event loop.
  • Loading branch information
jagerman committed Jun 22, 2022
1 parent 0edb443 commit c37d6ea
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 47 deletions.
21 changes: 5 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ option(USE_NETNS "enable networking namespace support. Linux only" OFF)
option(NATIVE_BUILD "optimise for host system and FPU" ON)
option(EMBEDDED_CFG "optimise for older hardware or embedded systems" OFF)
option(BUILD_LIBLOKINET "build liblokinet.so" ON)
option(SHADOW "use shadow testing framework. linux only" OFF)
option(XSAN "use sanitiser, if your system has it (requires -DCMAKE_BUILD_TYPE=Debug)" OFF)
option(USE_JEMALLOC "Link to jemalloc for memory allocations, if found" ON)
option(TESTNET "testnet build" OFF)
Expand Down Expand Up @@ -178,10 +177,6 @@ if(NOT APPLE)
endif()
endif()

if (NOT CMAKE_SYSTEM_NAME MATCHES "Linux" AND SHADOW)
message( FATAL_ERROR "shadow-framework is Linux only" )
endif()

if(XSAN)
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -fsanitize=${XSAN} -fno-omit-frame-pointer -fno-sanitize-recover")
foreach(type EXE MODULE SHARED STATIC)
Expand Down Expand Up @@ -229,10 +224,6 @@ if(TESTNET)
# add_definitions(-DTESTNET_SPEED=5)
endif()

if(SHADOW)
include(cmake/shadow.cmake)
endif()

unset(GIT_VERSION)
unset(GIT_VERSION_REAL)

Expand Down Expand Up @@ -300,13 +291,11 @@ endif()
if(WITH_HIVE)
add_subdirectory(pybind)
endif()
if (NOT SHADOW)
if(WITH_TESTS OR WITH_HIVE)
add_subdirectory(test)
endif()
if(ANDROID)
add_subdirectory(jni)
endif()
if(WITH_TESTS OR WITH_HIVE)
add_subdirectory(test)
endif()
if(ANDROID)
add_subdirectory(jni)
endif()

add_subdirectory(docs)
Expand Down
21 changes: 0 additions & 21 deletions cmake/shadow.cmake

This file was deleted.

4 changes: 0 additions & 4 deletions llarp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@ if(TRACY_ROOT)
target_sources(liblokinet PRIVATE ${TRACY_ROOT}/TracyClient.cpp)
endif()

if(TESTNET)
target_sources(liblokinet PRIVATE testnet.c)
endif()

if(WITH_HIVE)
target_sources(liblokinet PRIVATE
tooling/router_hive.cpp
Expand Down
6 changes: 0 additions & 6 deletions llarp/testnet.c

This file was deleted.

0 comments on commit c37d6ea

Please sign in to comment.