summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/libmed/files/libmed-4.0.0-tests.patch')
-rw-r--r--sci-libs/libmed/files/libmed-4.0.0-tests.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/sci-libs/libmed/files/libmed-4.0.0-tests.patch b/sci-libs/libmed/files/libmed-4.0.0-tests.patch
new file mode 100644
index 00000000000..91041fb4c12
--- /dev/null
+++ b/sci-libs/libmed/files/libmed-4.0.0-tests.patch
@@ -0,0 +1,17 @@
+--- ./tests/python/CMakeLists.txt.orig 2018-11-05 14:22:25.000000000 +0100
++++ ./tests/python/CMakeLists.txt 2019-01-09 17:37:17.142913290 +0100
+@@ -33,11 +33,13 @@
+ UseCase_MEDinterp_3.py
+ )
+
++FILE(COPY tests_params.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
++
+ FOREACH(_s IN LISTS _tst_scripts)
+ STRING(REPLACE ".py" "_Python" _tst_name ${_s})
+ FILE(COPY ${_s} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
+ ADD_TEST(NAME ${_tst_name}
+- COMMAND "/usr/bin/env" "PYTHONPATH=${PROJECT_BINARY_DIR}/python" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/${_s}")
++ COMMAND "/usr/bin/env" "PYTHONPATH=${PROJECT_BINARY_DIR}/python:${PROJECT_BINARY_DIR}/python/med" "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/${_s}")
+ ENDFOREACH()
+
+ INSTALL(FILES ${_to_install} DESTINATION bin/testpy)