Commit 68414b7e authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5206 fix calculation of bdb test list


git-svn-id: file:///svn/toku/tokudb@45945 c7de825b-a66e-492c-adef-691d508d4ae1
parent b269b859
...@@ -4,7 +4,7 @@ if(BUILD_TESTING) ...@@ -4,7 +4,7 @@ if(BUILD_TESTING)
file(GLOB transparent_upgrade_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" upgrade*.cc) file(GLOB transparent_upgrade_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" upgrade*.cc)
file(GLOB tdb_dontrun_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" bdb-simple-deadlock*.cc) file(GLOB tdb_dontrun_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" bdb-simple-deadlock*.cc)
string(REGEX REPLACE "\\.cc?(;|$)" "\\1" tdb_dontrun_tests "${tdb_dontrun_srcs}") string(REGEX REPLACE "\\.cc(;|$)" "\\1" tdb_dontrun_tests "${tdb_dontrun_srcs}")
file(GLOB srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.cc) file(GLOB srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.cc)
list(REMOVE_ITEM srcs ${transparent_upgrade_srcs}) list(REMOVE_ITEM srcs ${transparent_upgrade_srcs})
...@@ -13,16 +13,16 @@ if(BUILD_TESTING) ...@@ -13,16 +13,16 @@ if(BUILD_TESTING)
file(GLOB abortrecover_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" recover-*.cc) file(GLOB abortrecover_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" recover-*.cc)
file(GLOB loader_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" loader-*.cc) file(GLOB loader_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" loader-*.cc)
file(GLOB stress_test_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" test_stress*.cc) file(GLOB stress_test_srcs RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" test_stress*.cc)
string(REGEX REPLACE "\\.cc?(;|$)" ".recover\\1" recover_tests "${recover_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".recover\\1" recover_tests "${recover_srcs}")
string(REGEX REPLACE "\\.cc?(;|$)" ".abortrecover\\1" abortrecover_tests "${abortrecover_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".abortrecover\\1" abortrecover_tests "${abortrecover_srcs}")
string(REGEX REPLACE "\\.cc?(;|$)" ".loader\\1" loader_tests "${loader_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".loader\\1" loader_tests "${loader_srcs}")
string(REGEX REPLACE "\\.cc?(;|$)" ".tdb\\1" stress_tests "${stress_test_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".tdb\\1" stress_tests "${stress_test_srcs}")
set(tdb_srcs ${srcs}) set(tdb_srcs ${srcs})
list(REMOVE_ITEM tdb_srcs ${tdb_dontrun_srcs}) list(REMOVE_ITEM tdb_srcs ${tdb_dontrun_srcs})
string(REGEX REPLACE "\\.cc?(;|$)" ".tdb\\1" tdb_bins "${tdb_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".tdb\\1" tdb_bins "${tdb_srcs}")
list(REMOVE_ITEM tdb_srcs ${abortrecover_srcs} ${loader_srcs}) list(REMOVE_ITEM tdb_srcs ${abortrecover_srcs} ${loader_srcs})
string(REGEX REPLACE "\\.cc?(;|$)" ".tdb\\1" tdb_tests "${tdb_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".tdb\\1" tdb_tests "${tdb_srcs}")
if(BDB_FOUND) if(BDB_FOUND)
set(bdb_dontrun_srcs set(bdb_dontrun_srcs
...@@ -304,7 +304,7 @@ if(BUILD_TESTING) ...@@ -304,7 +304,7 @@ if(BUILD_TESTING)
set(bdb_srcs ${srcs}) set(bdb_srcs ${srcs})
string(REGEX REPLACE "\\.cc(;|$)" "\\1" bdb_testbases "${bdb_srcs}") string(REGEX REPLACE "\\.cc(;|$)" "\\1" bdb_testbases "${bdb_srcs}")
list(REMOVE_ITEM bdb_testbases ${bdb_dontrun_srcs}) list(REMOVE_ITEM bdb_testbases ${bdb_dontrun_srcs})
string(REGEX REPLACE "(;|$)" ".bdb\\1" bdb_tests "${bdb_testbases}") string(REGEX REPLACE "(.)(;|$)" "\\1.bdb\\2" bdb_tests "${bdb_testbases}")
set(bdb_bins ${bdb_tests}) set(bdb_bins ${bdb_tests})
endif() endif()
...@@ -392,7 +392,7 @@ if(BUILD_TESTING) ...@@ -392,7 +392,7 @@ if(BUILD_TESTING)
add_dependencies(test1426.tdb tokudb_dump) add_dependencies(test1426.tdb tokudb_dump)
endif() endif()
string(REGEX REPLACE "\\.cc?(;|$)" ".tdb\\1" recover_would_be_tdb_tests "${recover_srcs}") string(REGEX REPLACE "\\.cc(;|$)" ".tdb\\1" recover_would_be_tdb_tests "${recover_srcs}")
declare_custom_tests(${recover_would_be_tdb_tests}) declare_custom_tests(${recover_would_be_tdb_tests})
declare_custom_tests(powerfail.tdb) declare_custom_tests(powerfail.tdb)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment