Home | History | Annotate | Download | only in api
      1 /*-------------------------------------------------------------------------
      2  * Vulkan Conformance Tests
      3  * ------------------------
      4  *
      5  * Copyright (c) 2015 Google Inc.
      6  *
      7  * Licensed under the Apache License, Version 2.0 (the "License");
      8  * you may not use this file except in compliance with the License.
      9  * You may obtain a copy of the License at
     10  *
     11  *      http://www.apache.org/licenses/LICENSE-2.0
     12  *
     13  * Unless required by applicable law or agreed to in writing, software
     14  * distributed under the License is distributed on an "AS IS" BASIS,
     15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16  * See the License for the specific language governing permissions and
     17  * limitations under the License.
     18  *
     19  *//*!
     20  * \file
     21  * \brief API Tests
     22  *//*--------------------------------------------------------------------*/
     23 
     24 #include "vktApiTests.hpp"
     25 
     26 #include "vktTestGroupUtil.hpp"
     27 #include "vktApiSmokeTests.hpp"
     28 #include "vktApiDeviceInitializationTests.hpp"
     29 #include "vktApiObjectManagementTests.hpp"
     30 #include "vktApiBufferTests.hpp"
     31 #include "vktApiBufferViewCreateTests.hpp"
     32 #include "vktApiBufferViewAccessTests.hpp"
     33 #include "vktApiFeatureInfo.hpp"
     34 #include "vktApiCommandBuffersTests.hpp"
     35 #include "vktApiCopiesAndBlittingTests.hpp"
     36 #include "vktApiImageClearingTests.hpp"
     37 #include "vktApiFillBufferTests.hpp"
     38 #include "vktApiDescriptorPoolTests.hpp"
     39 #include "vktApiNullHandleTests.hpp"
     40 #include "vktApiGranularityTests.hpp"
     41 
     42 namespace vkt
     43 {
     44 namespace api
     45 {
     46 
     47 namespace
     48 {
     49 
     50 void createBufferViewTests (tcu::TestCaseGroup* bufferViewTests)
     51 {
     52 	tcu::TestContext&	testCtx		= bufferViewTests->getTestContext();
     53 
     54 	bufferViewTests->addChild(createBufferViewCreateTests	(testCtx));
     55 	bufferViewTests->addChild(createBufferViewAccessTests	(testCtx));
     56 }
     57 
     58 void createApiTests (tcu::TestCaseGroup* apiTests)
     59 {
     60 	tcu::TestContext&	testCtx		= apiTests->getTestContext();
     61 
     62 	apiTests->addChild(createSmokeTests					(testCtx));
     63 	apiTests->addChild(api::createFeatureInfoTests		(testCtx));
     64 	apiTests->addChild(createDeviceInitializationTests	(testCtx));
     65 	apiTests->addChild(createObjectManagementTests		(testCtx));
     66 	apiTests->addChild(createBufferTests				(testCtx));
     67 	apiTests->addChild(createTestGroup					(testCtx, "buffer_view", "BufferView tests", createBufferViewTests));
     68 	apiTests->addChild(createCommandBuffersTests		(testCtx));
     69 	apiTests->addChild(createCopiesAndBlittingTests		(testCtx));
     70 	apiTests->addChild(createImageClearingTests			(testCtx));
     71 	apiTests->addChild(createFillAndUpdateBufferTests	(testCtx));
     72 	apiTests->addChild(createDescriptorPoolTests		(testCtx));
     73 	apiTests->addChild(createNullHandleTests			(testCtx));
     74 	apiTests->addChild(createGranularityQueryTests		(testCtx));
     75 }
     76 
     77 } // anonymous
     78 
     79 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
     80 {
     81 	return createTestGroup(testCtx, "api", "API Tests", createApiTests);
     82 }
     83 
     84 } // api
     85 } // vkt
     86