From 9e7ed6fde49438722234094ae35284cc13094193 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 13 Mar 2020 15:09:24 -0400 Subject: [PATCH] Checking for lfs in testing. --- CMakeLists.txt | 10 ++++++++++ data/data.readme | 4 ++-- data/sentinel-data | 3 +++ 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 data/sentinel-data diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e24fd2a5..a249469b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,6 +159,16 @@ include(VTKmCompilerFlags) #----------------------------------------------------------------------------- +# We need to check and see if git lfs is installed so that test data will +# be available for use +file(READ "${VTKm_SOURCE_DIR}/data/sentinel-data" data) +if (NOT data STREQUAL "\n") + message(WARNING + "Testing is enabled, but the data is not available. Use git lfs in order " + " to obtain the testing data.") + set(VTKm_ENABLE_TESTING off) +endif() + # We include the wrappers unconditionally as VTK-m expects the function to # always exist (and early terminate when testing is disabled). include(testing/VTKmTestWrappers) diff --git a/data/data.readme b/data/data.readme index 625be3a9b..91daec721 100644 --- a/data/data.readme +++ b/data/data.readme @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:9fa8928893e3a34e24a6d675f66001df373c51657f9c5acb9606950e6e7f0b65 -size 456 +oid sha256:f4c2b15c789037bb7721de8b40575c90dddb4a76920dba8b9488f9d3bac2b06f +size 624 diff --git a/data/sentinel-data b/data/sentinel-data new file mode 100644 index 000000000..fd481aab7 --- /dev/null +++ b/data/sentinel-data @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b +size 1