ts: don't run DNN tests with large models (valgrind)

pull/9238/head
Alexander Alekhin 8 years ago
parent 1516103a15
commit d17b099994
  1. 7
      modules/ts/misc/run_long.py

@ -7,6 +7,7 @@ from pprint import PrettyPrinter as PP
LONG_TESTS_DEBUG_VALGRIND = [ LONG_TESTS_DEBUG_VALGRIND = [
('calib3d', 'Calib3d_InitUndistortRectifyMap.accuracy', 2017.22), ('calib3d', 'Calib3d_InitUndistortRectifyMap.accuracy', 2017.22),
('dnn', 'Reproducibility*', 1000), # large DNN models
('features2d', 'Features2d_Feature2d.no_crash', 1235.68), ('features2d', 'Features2d_Feature2d.no_crash', 1235.68),
('ml', 'ML_RTrees.regression', 1423.47), ('ml', 'ML_RTrees.regression', 1423.47),
('optflow', 'DenseOpticalFlow_DeepFlow.ReferenceAccuracy', 1360.95), ('optflow', 'DenseOpticalFlow_DeepFlow.ReferenceAccuracy', 1360.95),
@ -43,10 +44,8 @@ LONG_TESTS_DEBUG_VALGRIND = [
] ]
def longTestFilter(data): def longTestFilter(data, module = None):
res = ['*', '-'] res = ['*', '-'] + [v for _, v, m in data if module is None or m == module]
for _, v, _ in data:
res.append(v)
return '--gtest_filter={}'.format(':'.join(res)) return '--gtest_filter={}'.format(':'.join(res))

Loading…
Cancel
Save