Ask Your Question
0

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

asked 2018-05-23 03:53:18 -0600

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

berak gravatar image

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2018-05-23 04:03:52 -0600

berak gravatar image

you can try with --gtest_filter e.g.:

opencv_perf_stitching --gtest_filter=matchVector_bestOf2NearestVectorFeatures.bestOf2NearestVectorFeatures/0

see also here

edit flag offensive delete link more

Comments

1

Thanks very much. it works.

Ella Feng gravatar imageElla Feng ( 2018-05-23 05:00:03 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-05-23 03:53:18 -0600

Seen: 241 times

Last updated: May 23 '18