Skip to content

Commit

Permalink
[Refactor] Split basic test (#192)
Browse files Browse the repository at this point in the history
* Moved some tests from basic test to `sync_and_flush_test`.
  • Loading branch information
greensky00 authored Jan 28, 2025
1 parent ddf3f4a commit 8fe16e2
Show file tree
Hide file tree
Showing 5 changed files with 831 additions and 696 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ if (CODE_COVERAGE GREATER 0)
memtable_test
table_test
basic_op_test
sync_and_flush_test
nearest_search_test
seq_itr_test
key_itr_test
Expand Down
1 change: 1 addition & 0 deletions scripts/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ $VALGRIND ./tests/table_test --abort-on-failure
$VALGRIND ./tests/table_lookup_booster_test --abort-on-failure

$VALGRIND ./tests/basic_op_test --abort-on-failure
$VALGRIND ./tests/sync_and_flush_test --abort-on-failure
$VALGRIND ./tests/nearest_search_test --abort-on-failure
$VALGRIND ./tests/seq_itr_test --abort-on-failure
$VALGRIND ./tests/key_itr_test --abort-on-failure
Expand Down
5 changes: 5 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ add_executable(basic_op_test ${BASIC_OP_TEST})
target_link_libraries(basic_op_test ${JUNGLE_TEST_DEPS})
add_dependencies(basic_op_test static_lib)

set(SYNC_AND_FLUSH_TEST ${TEST_DIR}/jungle/sync_and_flush_test.cc)
add_executable(sync_and_flush_test ${SYNC_AND_FLUSH_TEST})
target_link_libraries(sync_and_flush_test ${JUNGLE_TEST_DEPS})
add_dependencies(sync_and_flush_test static_lib)

set(NEAREST_SEARCH_TEST ${TEST_DIR}/jungle/nearest_search_test.cc)
add_executable(nearest_search_test ${NEAREST_SEARCH_TEST})
target_link_libraries(nearest_search_test ${JUNGLE_TEST_DEPS})
Expand Down
Loading

0 comments on commit 8fe16e2

Please sign in to comment.