Checking for lfs in testing.

This commit is contained in:
James 2020-03-13 15:09:24 -04:00
parent adb73b3600
commit 9e7ed6fde4
3 changed files with 15 additions and 2 deletions

@ -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)

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9fa8928893e3a34e24a6d675f66001df373c51657f9c5acb9606950e6e7f0b65
size 456
oid sha256:f4c2b15c789037bb7721de8b40575c90dddb4a76920dba8b9488f9d3bac2b06f
size 624

3
data/sentinel-data Normal file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b
size 1