From 0fcf63e9e47bae61b9f7289c157b28ec294c2e24 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Wed, 21 Feb 2024 17:03:45 -0500 Subject: Triespline: added test to verify that crash is not due to this project --- CMakeLists.txt | 6 +++++ tests/triespline_debug.cpp | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 tests/triespline_debug.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 81fdb63..31bc75a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,6 +115,12 @@ if (tests) target_include_directories(pgm_tests PRIVATE include external/PGM-index/include external/psudb-common/cpp/include) target_link_options(pgm_tests PUBLIC -mcx16) target_compile_options(pgm_tests PUBLIC -fopenmp) + + + add_executable(triespline_debug ${CMAKE_CURRENT_SOURCE_DIR}/tests/triespline_debug.cpp) + target_link_libraries(triespline_debug PUBLIC gsl check subunit pthread atomic) + target_link_options(triespline_debug PUBLIC -mcx16) + target_include_directories(triespline_debug PRIVATE include external/psudb-common/cpp/include external/PLEX/include) endif() if (bench) diff --git a/tests/triespline_debug.cpp b/tests/triespline_debug.cpp new file mode 100644 index 0000000..4949cd0 --- /dev/null +++ b/tests/triespline_debug.cpp @@ -0,0 +1,63 @@ +/* + * tests/internal_level_tests.cpp + * + * Unit tests for InternalLevel + * + * Copyright (C) 2023 Douglas Rumbaugh + * Dong Xie + * + * Distributed under the Modified BSD License. + * + */ + +#include +#include "ts/builder.h" + +#include + + +START_TEST(t_sequential_integers) +{ + size_t n = 4097; + auto bldr = ts::Builder(436712, 440808, 1024); + + for (size_t i=436712; i