Move general compaction tests from db_test.cc to db_compaction_test.cc

Summary: Move general compaction tests from db_test.cc to db_compaction_test.cc

Test Plan:
db_test
db_compaction_test

Reviewers: igor, sdong, IslamAbdelRahman, anthony

Reviewed By: anthony

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D42651
This commit is contained in:
Yueh-Hsuan Chiang 2015-07-21 03:05:57 -07:00
parent 0adecd9f4f
commit 7219088cda
5 changed files with 1663 additions and 1547 deletions

View File

@ -257,6 +257,7 @@ set(TESTS
db/db_log_iter_test.cc
db/db_test.cc
db/db_compaction_filter_test.cc
db/db_compaction_test.cc
db/db_dynamic_level_test.cc
db/db_inplace_update_test.cc
db/db_log_iter_test.cc

View File

@ -222,6 +222,7 @@ TESTS = \
db_iter_test \
db_log_iter_test \
db_compaction_filter_test \
db_compaction_test \
db_dynamic_level_test \
db_inplace_update_test \
db_tailing_iter_test \
@ -689,6 +690,9 @@ db_log_iter_test: db/db_log_iter_test.o util/db_test_util.o $(LIBOBJECTS) $(TEST
db_compaction_filter_test: db/db_compaction_filter_test.o util/db_test_util.o $(LIBOBJECTS) $(TESTHARNESS)
$(AM_LINK)
db_compaction_test: db/db_compaction_test.o util/db_test_util.o $(LIBOBJECTS) $(TESTHARNESS)
$(AM_LINK)
db_dynamic_level_test: db/db_dynamic_level_test.o util/db_test_util.o $(LIBOBJECTS) $(TESTHARNESS)
$(AM_LINK)

1656
db/db_compaction_test.cc Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

1
src.mk
View File

@ -165,6 +165,7 @@ TEST_BENCH_SOURCES = \
db/db_iter_test.cc \
db/db_test.cc \
db/db_compaction_filter_test.cc \
db/db_compaction_test.cc \
db/db_dynamic_level_test.cc \
db/db_inplace_update_test.cc \
db/db_log_iter_test.cc \