Skip to content

Commit

Permalink
CMake: Disable csv tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Apr 2, 2021
1 parent 0810264 commit 8a329e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/Base/Stat/SampleImplementation.cxx
Expand Up @@ -366,6 +366,7 @@ SampleImplementation SampleImplementation::BuildFromCSVFile(const FileName & fil
if (impl.getDimension() == 0) LOGWARN(OSS() << "Warning: No data from the file has been stored.");

#else
(void)fileName;
throw NotYetImplementedException(HERE) << "OpenTURNS has been compiled without bison/flex support";
#endif
return impl;
Expand Down
11 changes: 10 additions & 1 deletion python/test/CMakeLists.txt
Expand Up @@ -823,6 +823,9 @@ if (MATPLOTLIB_FOUND)
if (NOT PANDAS_FOUND)
set_tests_properties (pyinstallcheck_example_plot_sample_pandas PROPERTIES WILL_FAIL TRUE)
endif ()
if (NOT BISON_FOUND OR NOT FLEX_FOUND)
set_tests_properties (pyinstallcheck_example_plot_import_export_sample_csv PROPERTIES WILL_FAIL TRUE)
endif ()
endif ()

if (MATPLOTLIB_FOUND)
Expand All @@ -836,7 +839,7 @@ ot_pyinstallcheck_test (shims IGNOREOUT)



if (OPENTURNS_HAVE_ANALYTICAL_PARSER AND MATPLOTLIB_FOUND AND LIBXML2_FOUND)
if (OPENTURNS_HAVE_ANALYTICAL_PARSER AND MATPLOTLIB_FOUND)
# source modules
file (GLOB modules ${PROJECT_SOURCE_DIR}/python/src/*.py)
# swig modules
Expand All @@ -848,6 +851,12 @@ if (OPENTURNS_HAVE_ANALYTICAL_PARSER AND MATPLOTLIB_FOUND AND LIBXML2_FOUND)
add_test (pyinstallcheck_docstring_${module_name} ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/t_docstring.py ${module})
set_tests_properties (pyinstallcheck_docstring_${module_name} PROPERTIES ENVIRONMENT "${PYINSTALLCHECK_ENVIRONMENT}")
endforeach()
if (NOT BISON_FOUND OR NOT FLEX_FOUND)
set_tests_properties (pyinstallcheck_docstring_typ PROPERTIES WILL_FAIL TRUE)
endif ()
if (NOT LIBXML2_FOUND)
set_tests_properties (pyinstallcheck_docstring_common PROPERTIES WILL_FAIL TRUE)
endif ()
endif ()

add_custom_target (pyinstallcheck COMMAND ${CMAKE_CTEST_COMMAND} -R "^pyinstallcheck_"
Expand Down

0 comments on commit 8a329e3

Please sign in to comment.