1 if (BUILDSWIGJAVA) 2 add_test (NAME check_clean COMMAND ${PYTHON_EXECUTABLE} 3 ${CMAKE_CURRENT_SOURCE_DIR}/check_clean.py 4 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) 5 6 add_test (NAME check_samplenames COMMAND ${PYTHON_EXECUTABLE} 7 ${CMAKE_CURRENT_SOURCE_DIR}/check_samplenames.py 8 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) 9 endif() 10 11 if (BUILDSWIGPYTHON) 12 add_test (NAME py_general COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/general_checks.py) 13 set_tests_properties(py_general PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/src/python/") 14 15 add_test (NAME py_platform COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/platform_checks.py) 16 set_tests_properties(py_platform PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/src/python/") 17 18 add_test (NAME py_gpio COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/gpio_checks.py) 19 set_tests_properties(py_gpio PROPERTIES ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/src/python/") 20 endif() 21