add_python_unit_test(py-robot tests/robot.py src)
add_python_unit_test(py-quat tests/quat.py src)
add_python_unit_test(py-utils tests/utils.py src)
if(PYTHON_VERSION_MAJOR EQUAL 3)
  add_python_unit_test(py-port tests/port.py src)
endif()
add_python_unit_test(py-delete-servant tests/delete_servant.py src)
add_python_unit_test(py-path-serialization tests/path_serialization.py src)
add_python_unit_test(py-problem tests/problem.py src)

# robot & utils start a hppcorbaserver in a separate process. They shouldn't be
# launched at the same time.
set_tests_properties("py-robot" PROPERTIES RUN_SERIAL "ON")
set_tests_properties("py-utils" PROPERTIES RUN_SERIAL "ON")
set_tests_properties("py-port" PROPERTIES RUN_SERIAL "ON")
set_tests_properties("py-path-serialization" PROPERTIES RUN_SERIAL "ON")
set_tests_properties("py-problem" PROPERTIES RUN_SERIAL "ON")

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hppcorbaserver.sh
               ${CMAKE_CURRENT_BINARY_DIR}/hppcorbaserver.sh)
