Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 597768 | Differences between
and this patch

Collapse All | Expand All

(-)a/tests/python/CMakeLists.txt (-3 / +5 lines)
Lines 1-6 Link Here
1
SET(_tst_scripts
1
SET(_tst_scripts
2
  test10.py
2
  #test10.py
3
  test11.py
3
  #test11.py
4
  test12.py
4
  test12.py
5
  test13.py
5
  test13.py
6
  test1.py
6
  test1.py
Lines 31-41 Link Here
31
  UseCase_MEDinterp_3.py
31
  UseCase_MEDinterp_3.py
32
)
32
)
33
33
34
FILE(COPY tests_params.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
35
34
FOREACH(_s IN LISTS _tst_scripts)
36
FOREACH(_s IN LISTS _tst_scripts)
35
  STRING(REPLACE ".py" "_Python" _tst_name ${_s})
37
  STRING(REPLACE ".py" "_Python" _tst_name ${_s})
36
  FILE(COPY ${_s} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
38
  FILE(COPY ${_s} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
37
  ADD_TEST(NAME ${_tst_name}
39
  ADD_TEST(NAME ${_tst_name}
38
           COMMAND "/usr/bin/env" "PYTHONPATH=${PROJECT_BINARY_DIR}/python" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/${_s}")
40
           COMMAND "/usr/bin/env" "PYTHONPATH=${PROJECT_BINARY_DIR}/python:${PROJECT_BINARY_DIR}/python/med" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/${_s}")
39
ENDFOREACH()
41
ENDFOREACH()
40
42
41
INSTALL(FILES ${_to_install} DESTINATION bin/testpy)
43
INSTALL(FILES ${_to_install} DESTINATION bin/testpy)

Return to bug 597768