• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1if (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})
9endif()
10
11if (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/")
20endif()
21