Native testing for OpenCV Manager enabled

All tests added to CMake;
All tests ported on 4 digit version support;
Some test fixes and bug fixes were done.
This commit is contained in:
Alexander Smorkalov
2013-01-18 18:33:04 +04:00
parent 716e0192b3
commit 8c44e1ff81
6 changed files with 74 additions and 64 deletions

View File

@@ -111,7 +111,6 @@ TEST(Split, SplitMultiElementString)
TEST(CpuCount, CheckNonZero)
{
EXPECT_TRUE(GetProcessorCount() != 0);
EXPECT_TRUE(a.find("") == a.end());
}
TEST(GetCpuInfo, GetCpuInfo)
@@ -140,13 +139,13 @@ TEST(CpuID, CheckSSE2)
EXPECT_TRUE(cpu_id & FEATURES_HAS_SSE2);
}
#elseif __mips
#ifdef __SUPPORT_MIPS
TEST(CpuID, CheckMips)
{
#ifdef __SUPPORT_MIPS
TEST(CpuID, CheckMips)
{
int cpu_id = GetCpuID();
EXPECT_TRUE(cpu_id & ARCH_MIPS);
}
#endif
}
#endif
#else
TEST(TegraDetector, Detect)
{
@@ -175,4 +174,4 @@ TEST(PlatfromDetector, CheckTegra)
{
EXPECT_NE(PLATFORM_UNKNOWN, DetectKnownPlatforms());
}
#endif
#endif