Ask Your Question

Revision history [back]

How can I run a single gtest case, like opencv_perf_stitching?

when run opencv_perf_stitching, I got 6 failed cases. Like,

[----------] Global test environment tear-down [==========] 85 tests from 15 test cases ran. (17187434 ms total) [ PASSED ] 79 tests. [ FAILED ] 6 tests, listed below: [ FAILED ] matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/0, where GetParam() = ("surf", 2) [ FAILED ] matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/1, where GetParam() = ("surf", 4) [ FAILED ] matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/2, where GetParam() = ("surf", 8) [ FAILED ] matchVector_affineBestOf2NearestVectorFeatures.affineBestOf2NearestVectorFeatures/3, where GetParam() = ("orb", 2) [ FAILED ] matchVector_affineBestOf2NearestVectorFeatures.affineBestOf2NearestVectorFeaturs/4, where GetParam() = ("orb", 4) [ FAILED ] matchVector_affineBestOf2NearestVectorFeatures.affineBestOf2NearestVectorFeatures/5, where GetParam() = ("orb", 8)

6 FAILED TESTS

I'd like to focus on these failed cases to see what's going wrong. How can I run a single case?

click to hide/show revision 2
None

updated 2018-05-23 03:58:00 -0600

berak gravatar image

How can I run a single gtest case, like opencv_perf_stitching?

when run opencv_perf_stitching, I got 6 failed cases. Like,

[----------] Global test environment tear-down 
[==========] 85 tests from 15 test cases ran. (17187434 ms total) 
[ PASSED ] 79 tests.
 [ FAILED ] 6 tests, listed below: 
[ FAILED ] matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/0, where GetParam() = ("surf", 2) [ FAILED ] matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/1, where GetParam() = ("surf", 4) [ FAILED ] matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/2, where GetParam() = ("surf", 8) [ FAILED ] matchVector_affineBestOf2NearestVectorFeatures.affineBestOf2NearestVectorFeatures/3, where GetParam() = ("orb", 2) 
[ FAILED ] matchVector_affineBestOf2NearestVectorFeatures.affineBestOf2NearestVectorFeaturs/4, where GetParam() = ("orb", 4)
 [ FAILED ] matchVector_affineBestOf2NearestVectorFeatures.affineBestOf2NearestVectorFeatures/5, where GetParam() = ("orb", 8)

8)

6 FAILED TESTS

I'd like to focus on these failed cases to see what's going wrong. How can I run a single case?