Skip to content

Commit de8faf6

Browse files
authored
Enable more C++ tests in CI (#87)
1 parent d60b617 commit de8faf6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/cmake/Superbuild.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ add_custom_target(check
128128
)
129129

130130
add_custom_target(check-ci
131-
COMMAND ${CMAKE_CTEST_COMMAND} --test-dir ${CMAKE_CURRENT_BINARY_DIR}/libtiledbvectorsearch --output-on-failure -E \"unit_ivf_index_test|unit_slicing_test|unit_utils_test|time_.+\"
131+
COMMAND ${CMAKE_CTEST_COMMAND} --test-dir ${CMAKE_CURRENT_BINARY_DIR}/libtiledbvectorsearch --output-on-failure -E \"unit_slicing|unit_ivf_index\"
132132
)

src/include/test/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ macro (kmeans_add_test TESTNAME)
4242
target_link_libraries(${TESTNAME} PRIVATE kmeans_lib Catch2::Catch2WithMain)
4343
# target_compile_definitions(${TESTNAME} PRIVATE DATA_DIR="${CMAKE_SOURCE_DIR}/data/")
4444
# target_compile_definitions(${TESTNAME} PRIVATE DATA_FILE="${CMAKE_SOURCE_DIR}/data/karate.mtx")
45-
add_test(NAME ${TESTNAME}_test COMMAND ${TESTNAME} "${CISKIP}")
45+
add_test(NAME ${TESTNAME}_test
46+
COMMAND ${TESTNAME} "${CISKIP}")
4647
# catch_discover_tests(${TESTNAME})
4748
endmacro (kmeans_add_test)
4849

src/include/test/unit_ivf_index.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ TEST_CASE("ivf_index: test test", "[ivf_index]") {
4646
}
4747

4848
// kmeans and kmeans indexing still WIP
49-
#if 0
5049

5150
void debug_centroids(auto& index) {
5251
for (size_t j = 0; j < index.get_centroids().num_rows(); ++j) {
@@ -58,6 +57,8 @@ void debug_centroids(auto& index) {
5857
std::cout << std::endl;
5958
}
6059

60+
#if 0
61+
6162
TEST_CASE("ivf_index: test kmeans initializations", "[ivf_index]") {
6263
std::vector<float> data = {8, 6, 7, 5, 3, 3, 7, 2, 1, 4, 1, 3, 0, 5, 1, 2,
6364
9, 9, 5, 9, 2, 0, 2, 7, 7, 9, 8, 6, 7, 9, 6, 6};
@@ -113,6 +114,7 @@ debug_centroids(index);
113114
CHECK(outer_counts == index.get_centroids().num_cols());
114115
}
115116

117+
#endif
116118

117119

118120
// kmeans and kmeans indexing still WIP

0 commit comments

Comments
 (0)