Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
9a15c7a8
Commit
9a15c7a8
authored
Sep 09, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3197 from asmorkalov:python_tests_package
parents
d7737528
35768ed6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
CMakeLists.txt
CMakeLists.txt
+6
-1
opencv_run_all_tests_unix.sh.in
cmake/templates/opencv_run_all_tests_unix.sh.in
+11
-0
CMakeLists.txt
modules/python/CMakeLists.txt
+0
-2
No files found.
CMakeLists.txt
View file @
9a15c7a8
...
...
@@ -602,6 +602,12 @@ if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH AND UNIX)
install
(
PROGRAMS
"
${
CMAKE_BINARY_DIR
}
/unix-install/opencv_run_all_tests.sh"
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
COMPONENT tests
)
else
()
set
(
OPENCV_PYTHON_TESTS_LIST
""
)
if
(
BUILD_opencv_python
)
file
(
GLOB py_tests modules/python/test/*.py
)
install
(
PROGRAMS
${
py_tests
}
DESTINATION
${
OPENCV_TEST_INSTALL_PATH
}
COMPONENT tests
)
set
(
OPENCV_PYTHON_TESTS_LIST
"test2.py"
)
endif
()
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/templates/opencv_testing.sh.in"
"
${
CMAKE_BINARY_DIR
}
/unix-install/opencv_testing.sh"
@ONLY
)
install
(
FILES
"
${
CMAKE_BINARY_DIR
}
/unix-install/opencv_testing.sh"
...
...
@@ -610,7 +616,6 @@ if(INSTALL_TESTS AND OPENCV_TEST_DATA_PATH AND UNIX)
"
${
CMAKE_BINARY_DIR
}
/unix-install/opencv_run_all_tests.sh"
@ONLY
)
install
(
PROGRAMS
"
${
CMAKE_BINARY_DIR
}
/unix-install/opencv_run_all_tests.sh"
DESTINATION
${
OPENCV_TEST_INSTALL_PATH
}
COMPONENT tests
)
endif
()
endif
()
...
...
cmake/templates/opencv_run_all_tests_unix.sh.in
View file @
9a15c7a8
#!/bin/sh
OPENCV_TEST_PATH
=
@CMAKE_INSTALL_PREFIX@/@OPENCV_TEST_INSTALL_PATH@
OPENCV_PYTHON_TESTS
=
@OPENCV_PYTHON_TESTS_LIST@
export
OPENCV_TEST_DATA_PATH
=
@CMAKE_INSTALL_PREFIX@/share/OpenCV/testdata
SUMMARY_STATUS
=
0
...
...
@@ -14,6 +15,16 @@ do
fi
done
for
t
in
$OPENCV_PYTHON_TESTS
;
do
report
=
"
`
basename
"
$t
"
`
-
`
date
--rfc-3339
=
date
`
.xml"
py.test
--junitxml
$report
"
$OPENCV_TEST_PATH
"
/
$t
TEST_STATUS
=
$?
if
[
$TEST_STATUS
-ne
0
]
;
then
SUMMARY_STATUS
=
$TEST_STATUS
fi
done
rm
-f
/tmp/__opencv_temp.
*
if
[
$SUMMARY_STATUS
-eq
0
]
;
then
...
...
modules/python/CMakeLists.txt
View file @
9a15c7a8
...
...
@@ -20,8 +20,6 @@ ocv_module_include_directories(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src2"
)
set
(
opencv_hdrs
"
${
OPENCV_MODULE_opencv_core_LOCATION
}
/include/opencv2/core/core.hpp"
"
${
OPENCV_MODULE_opencv_flann_LOCATION
}
/include/opencv2/flann/miniflann.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment