Commit 82536b0e authored by Leif Walsh's avatar Leif Walsh

silenced tokudb.data warning if being built as a component Tokutek/mongo#869

parent 378a6648
...@@ -85,7 +85,7 @@ set(TOKUDB_DATA "${TokuDB_SOURCE_DIR}/../tokudb.data" CACHE FILEPATH "Path to da ...@@ -85,7 +85,7 @@ set(TOKUDB_DATA "${TokuDB_SOURCE_DIR}/../tokudb.data" CACHE FILEPATH "Path to da
if (BUILD_TESTING OR BUILD_FT_TESTS OR BUILD_SRC_TESTS) if (BUILD_TESTING OR BUILD_FT_TESTS OR BUILD_SRC_TESTS)
set(WARNED_ABOUT_DATA 0) set(WARNED_ABOUT_DATA 0)
if (NOT EXISTS "${TOKUDB_DATA}/" AND NOT WARNED_ABOUT_DATA) if (NOT EXISTS "${TOKUDB_DATA}/" AND NOT WARNED_ABOUT_DATA AND CMAKE_PROJECT_NAME STREQUAL TokuDB)
message(WARNING "Test data files are missing from ${TOKUDB_DATA}, which will cause some tests to fail. Please put them there or modify TOKUDB_DATA to avoid this.") message(WARNING "Test data files are missing from ${TOKUDB_DATA}, which will cause some tests to fail. Please put them there or modify TOKUDB_DATA to avoid this.")
set(WARNED_ABOUT_DATA 1) set(WARNED_ABOUT_DATA 1)
endif () endif ()
......
...@@ -580,7 +580,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS) ...@@ -580,7 +580,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS)
foreach(oldver 4.2.0 5.0.8 5.2.7 6.0.0 6.1.0 6.5.1 6.6.3) foreach(oldver 4.2.0 5.0.8 5.2.7 6.0.0 6.1.0 6.5.1 6.6.3)
set(versiondir ${TOKUDB_DATA}/old-stress-test-envs/${oldver}) set(versiondir ${TOKUDB_DATA}/old-stress-test-envs/${oldver})
if (NOT EXISTS "${versiondir}/" AND NOT WARNED_ABOUT_DATA) if (NOT EXISTS "${versiondir}/" AND NOT WARNED_ABOUT_DATA AND CMAKE_PROJECT_NAME STREQUAL TokuDB)
message(WARNING "Test data for upgrade tests for version ${oldver} doesn't exist, check out ${versiondir}/*-2000-dir first or upgrade stress tests may fail.") message(WARNING "Test data for upgrade tests for version ${oldver} doesn't exist, check out ${versiondir}/*-2000-dir first or upgrade stress tests may fail.")
set(WARNED_ABOUT_DATA 1) set(WARNED_ABOUT_DATA 1)
endif () endif ()
...@@ -614,7 +614,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS) ...@@ -614,7 +614,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS)
endif () endif ()
endforeach(src) endforeach(src)
if (NOT EXISTS "${TOKUDB_DATA}/test_5902/" AND NOT WARNED_ABOUT_DATA) if (NOT EXISTS "${TOKUDB_DATA}/test_5902/" AND NOT WARNED_ABOUT_DATA AND CMAKE_PROJECT_NAME STREQUAL TokuDB)
message(WARNING "Test data for dump-env.tdb doesn't exist, check out ${TOKUDB_DATA}/test_5902 first or dump-env.tdb may fail.") message(WARNING "Test data for dump-env.tdb doesn't exist, check out ${TOKUDB_DATA}/test_5902 first or dump-env.tdb may fail.")
set(WARNED_ABOUT_DATA 1) set(WARNED_ABOUT_DATA 1)
endif () endif ()
...@@ -655,7 +655,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS) ...@@ -655,7 +655,7 @@ if(BUILD_TESTING OR BUILD_SRC_TESTS)
endforeach(num) endforeach(num)
set(old_loader_upgrade_data "${TOKUDB_DATA}/env_preload.4.2.0.emptydictionaries.cleanshutdown") set(old_loader_upgrade_data "${TOKUDB_DATA}/env_preload.4.2.0.emptydictionaries.cleanshutdown")
if (NOT EXISTS "${old_loader_upgrade_data}/" AND NOT WARNED_ABOUT_DATA) if (NOT EXISTS "${old_loader_upgrade_data}/" AND NOT WARNED_ABOUT_DATA AND CMAKE_PROJECT_NAME STREQUAL TokuDB)
message(WARNING "Test data for loader upgrade tests doesn't exist, check out ${old_loader_upgrade_data} first, or loader-stress-test3.tdb may fail.") message(WARNING "Test data for loader upgrade tests doesn't exist, check out ${old_loader_upgrade_data} first, or loader-stress-test3.tdb may fail.")
set(WARNED_ABOUT_DATA 1) set(WARNED_ABOUT_DATA 1)
endif () endif ()
......
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