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
4f8a1213
Commit
4f8a1213
authored
Oct 21, 2014
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
determine test category (Public vs Extra) based on module location
parent
edf54ac3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+18
-2
No files found.
cmake/OpenCVModule.cmake
View file @
4f8a1213
...
@@ -764,8 +764,16 @@ function(ocv_add_perf_tests)
...
@@ -764,8 +764,16 @@ function(ocv_add_perf_tests)
if
(
CMAKE_VERSION VERSION_GREATER
"2.8"
AND OPENCV_TEST_DATA_PATH
)
if
(
CMAKE_VERSION VERSION_GREATER
"2.8"
AND OPENCV_TEST_DATA_PATH
)
add_test
(
NAME
${
the_target
}
COMMAND
${
the_target
}
--perf_min_samples=1 --perf_force_samples=1 --perf_verify_sanity
)
add_test
(
NAME
${
the_target
}
COMMAND
${
the_target
}
--perf_min_samples=1 --perf_force_samples=1 --perf_verify_sanity
)
get_filename_component
(
cur_modules_loc
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/.."
ABSOLUTE
)
get_filename_component
(
default_modules_loc
"
${
CMAKE_SOURCE_DIR
}
/modules"
ABSOLUTE
)
if
(
"
${
cur_modules_loc
}
"
STREQUAL
"
${
default_modules_loc
}
"
)
set
(
test_category
"Public"
)
else
()
set
(
test_category
"Extra"
)
endif
()
set_tests_properties
(
${
the_target
}
PROPERTIES
set_tests_properties
(
${
the_target
}
PROPERTIES
LABELS
"Sanity"
LABELS
"
${
test_category
}
;
Sanity"
ENVIRONMENT
"OPENCV_TEST_DATA_PATH=
${
OPENCV_TEST_DATA_PATH
}
"
)
ENVIRONMENT
"OPENCV_TEST_DATA_PATH=
${
OPENCV_TEST_DATA_PATH
}
"
)
endif
()
endif
()
...
@@ -825,8 +833,16 @@ function(ocv_add_accuracy_tests)
...
@@ -825,8 +833,16 @@ function(ocv_add_accuracy_tests)
if
(
CMAKE_VERSION VERSION_GREATER
"2.8"
AND OPENCV_TEST_DATA_PATH AND NOT
"
${
the_target
}
"
MATCHES
"opencv_test_viz"
)
if
(
CMAKE_VERSION VERSION_GREATER
"2.8"
AND OPENCV_TEST_DATA_PATH AND NOT
"
${
the_target
}
"
MATCHES
"opencv_test_viz"
)
add_test
(
NAME
${
the_target
}
COMMAND
${
the_target
}
)
add_test
(
NAME
${
the_target
}
COMMAND
${
the_target
}
)
get_filename_component
(
cur_modules_loc
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/.."
ABSOLUTE
)
get_filename_component
(
default_modules_loc
"
${
CMAKE_SOURCE_DIR
}
/modules"
ABSOLUTE
)
if
(
"
${
cur_modules_loc
}
"
STREQUAL
"
${
default_modules_loc
}
"
)
set
(
test_category
"Public"
)
else
()
set
(
test_category
"Extra"
)
endif
()
set_tests_properties
(
${
the_target
}
PROPERTIES
set_tests_properties
(
${
the_target
}
PROPERTIES
LABELS
"Accuracy"
LABELS
"
${
test_category
}
;
Accuracy"
ENVIRONMENT
"OPENCV_TEST_DATA_PATH=
${
OPENCV_TEST_DATA_PATH
}
"
)
ENVIRONMENT
"OPENCV_TEST_DATA_PATH=
${
OPENCV_TEST_DATA_PATH
}
"
)
endif
()
endif
()
...
...
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