Made the crude ability less crude.
This commit is contained in:
parent
215b3e749f
commit
5b2dc26f2c
@ -578,6 +578,13 @@ int main(int argc, char **argv) \
|
|||||||
return RUN_ALL_TESTS(); \
|
return RUN_ALL_TESTS(); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This usually only makes sense in perf tests with several implementations,
|
||||||
|
// some of which are not available.
|
||||||
|
#define CV_TEST_FAIL_NO_IMPL() do { \
|
||||||
|
::testing::Test::RecordProperty("custom_status", "noimpl"); \
|
||||||
|
FAIL() << "No equivalent implementation."; \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "ts_perf.hpp"
|
#include "ts_perf.hpp"
|
||||||
|
@ -14,13 +14,13 @@ class TestInfo(object):
|
|||||||
self.value_param = xmlnode.getAttribute("value_param")
|
self.value_param = xmlnode.getAttribute("value_param")
|
||||||
self.type_param = xmlnode.getAttribute("type_param")
|
self.type_param = xmlnode.getAttribute("type_param")
|
||||||
|
|
||||||
|
custom_status = xmlnode.getAttribute("custom_status")
|
||||||
failures = xmlnode.getElementsByTagName("failure")
|
failures = xmlnode.getElementsByTagName("failure")
|
||||||
if len(failures) > 0:
|
|
||||||
if any("No equivalent implementation" in f.getAttribute("message")
|
if len(custom_status) > 0:
|
||||||
for f in failures):
|
self.status = custom_status
|
||||||
self.status = "notimpl"
|
elif len(failures) > 0:
|
||||||
else:
|
self.status = "failed"
|
||||||
self.status = "failed"
|
|
||||||
else:
|
else:
|
||||||
self.status = xmlnode.getAttribute("status")
|
self.status = xmlnode.getAttribute("status")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user