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 
37 namespace vkt
38 {
39 namespace api
40 {
41 
42 namespace
43 {
44 
createBufferViewTests(tcu::TestCaseGroup * bufferViewTests)45 void createBufferViewTests (tcu::TestCaseGroup* bufferViewTests)
46 {
47 	tcu::TestContext&	testCtx		= bufferViewTests->getTestContext();
48 
49 	bufferViewTests->addChild(createBufferViewCreateTests	(testCtx));
50 	bufferViewTests->addChild(createBufferViewAccessTests	(testCtx));
51 }
52 
createApiTests(tcu::TestCaseGroup * apiTests)53 void createApiTests (tcu::TestCaseGroup* apiTests)
54 {
55 	tcu::TestContext&	testCtx		= apiTests->getTestContext();
56 
57 	apiTests->addChild(createSmokeTests					(testCtx));
58 	apiTests->addChild(api::createFeatureInfoTests		(testCtx));
59 	apiTests->addChild(createDeviceInitializationTests	(testCtx));
60 	apiTests->addChild(createObjectManagementTests		(testCtx));
61 	apiTests->addChild(createBufferTests				(testCtx));
62 	apiTests->addChild(createTestGroup					(testCtx, "buffer_view", "BufferView tests", createBufferViewTests));
63 	apiTests->addChild(createCommandBuffersTests		(testCtx));
64 	apiTests->addChild(createCopiesAndBlittingTests		(testCtx));
65 }
66 
67 } // anonymous
68 
createTests(tcu::TestContext & testCtx)69 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
70 {
71 	return createTestGroup(testCtx, "api", "API Tests", createApiTests);
72 }
73 
74 } // api
75 } // vkt
76