SET(LIBBATCH_LOCAL_SUBMISSION TRUE CACHE BOOL "Build classes for local submission")
SET(LIBBATCH_PYTHON_WRAPPING TRUE CACHE BOOL "Generate Python wrapping")
-SET(LIBBATCH_TESTS FALSE CACHE BOOL "Enable testing")
+SET(LIBBATCH_BUILD_TESTS FALSE CACHE BOOL "Enable testing")
-IF(LIBBATCH_TESTS)
+IF(LIBBATCH_BUILD_TESTS)
ENABLE_TESTING()
ENDIF()
IF(LIBBATCH_LOCAL_SUBMISSION)
# !! Please read the generic detection procedure in libbatchMacros.cmake !!
#
SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(PThread PTHREAD_INCLUDE_DIR 1)
-MARK_AS_ADVANCED(PTHREAD_LIBRARIES PTHREAD_INCLUDE_DIR)
+MARK_AS_ADVANCED(PTHREAD_LIBRARIES PTHREAD_LIBRARY PTHREAD_INCLUDE_DIR)
quite poor. Remember that since the tests use connections to remote batch
systems, the first causes of failure are network and authentication errors. To
run the tests, you will first have to enable them by setting CMake variable
-LIBBATCH_TESTS to ON. Then copy the file src/Core/Test/batchtest.conf to your
+LIBBATCH_BUILD_TESTS to ON. Then copy the file src/Core/Test/batchtest.conf to your
home directory for instance. Edit this file according to your local
configuration. Set the environment variable BATCH_TEST_CONFIG_FILE to the path
to your own configuration file. To execute the autotests, just go to your build
ENDIF (HAS_SSH)
-IF (LIBBATCH_TESTS)
+IF (LIBBATCH_BUILD_TESTS)
ADD_SUBDIRECTORY(Test)
ENDIF ()
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libbatch.py
DESTINATION ${LIBBATCH_PYTHONPATH})
-IF (LIBBATCH_TESTS)
+IF (LIBBATCH_BUILD_TESTS)
ADD_SUBDIRECTORY(Test)
ENDIF ()