From ec3e81b7a7be77836ac52dc6168aa5ac4c498217 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 17 Feb 2018 12:58:17 -0800 Subject: Added test result reporting --- Tests/TestApp/src/TestCopyTexData.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Tests/TestApp/src/TestCopyTexData.cpp') diff --git a/Tests/TestApp/src/TestCopyTexData.cpp b/Tests/TestApp/src/TestCopyTexData.cpp index cbd6a24..5bb65e1 100644 --- a/Tests/TestApp/src/TestCopyTexData.cpp +++ b/Tests/TestApp/src/TestCopyTexData.cpp @@ -30,6 +30,7 @@ using namespace Diligent; TestCopyTexData::TestCopyTexData( IRenderDevice *pDevice, IDeviceContext *pContext ) : + UnitTestBase("Texture data copy test"), m_pDevice(pDevice), m_pContext(pContext) { @@ -68,12 +69,17 @@ TestCopyTexData::TestCopyTexData( IRenderDevice *pDevice, IDeviceContext *pConte TEX_FORMAT_R8_UINT, TEX_FORMAT_R8_SINT }; + int NumFormatsTested = 0; for( auto f = 0; f < _countof( TestFormats ); ++f ) { Test2DTexture(TestFormats[f]); Test2DTexArray(TestFormats[f]); Test3DTexture(TestFormats[f]); + ++NumFormatsTested; } + std::stringstream infoss; + infoss << "Formats tested: " << NumFormatsTested; + SetStatus(TestResult::Succeeded, infoss.str().c_str()); } void TestCopyTexData::Test2DTexture( TEXTURE_FORMAT Format ) -- cgit v1.2.3