X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=test%2FCMakeLists.txt;h=353d98a57638916d1f813a6142ae05c3c0ea640d;hb=062dc667290c9ad32390be92a3cf4f90fd315080;hp=4b5ae239b6f239d547fd607f5437d20dfbfdfd6f;hpb=4ef0e556d0f005b41aaf9e223cdfa66da87a00d7;p=nlopt.git diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4b5ae23..353d98a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,3 +31,7 @@ if (NUMPY_FOUND AND PYTHONLIBS_FOUND AND (SWIG_FOUND OR (EXISTS ${CMAKE_SOURCE_D add_test (NAME test_std_python COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test_std.py) set_tests_properties (test_std_python PROPERTIES ENVIRONMENT "${PYINSTALLCHECK_ENVIRONMENT}") endif () + +if (OCTAVE_FOUND) + add_test (NAME test_octave COMMAND ${OCTAVE_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/t_octave.m ${CMAKE_SOURCE_DIR}/octave ${CMAKE_BINARY_DIR}/octave) +endif () \ No newline at end of file