Add tests for VK_EXT_tooling_info
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / modules / vulkan / api / vktApiTests.cpp
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 "vktApiDriverPropertiesTests.hpp"
30 #include "vktApiObjectManagementTests.hpp"
31 #include "vktApiBufferMarkerTests.hpp"
32 #include "vktApiBufferTests.hpp"
33 #include "vktApiBufferViewCreateTests.hpp"
34 #include "vktApiBufferViewAccessTests.hpp"
35 #include "vktApiFeatureInfo.hpp"
36 #include "vktApiCommandBuffersTests.hpp"
37 #include "vktApiCopiesAndBlittingTests.hpp"
38 #include "vktApiImageClearingTests.hpp"
39 #include "vktApiFillBufferTests.hpp"
40 #include "vktApiDescriptorPoolTests.hpp"
41 #include "vktApiNullHandleTests.hpp"
42 #include "vktApiGranularityTests.hpp"
43 #include "vktApiGetMemoryCommitment.hpp"
44 #include "vktApiExternalMemoryTests.hpp"
45 #include "vktApiVersionCheck.hpp"
46 #include "vktApiMaintenance3Check.hpp"
47 #include "vktApiDescriptorSetTests.hpp"
48 #include "vktApiPipelineTests.hpp"
49 #include "vktApiMemoryRequirementInvarianceTests.hpp"
50 #include "vktApiToolingInfoTests.hpp"
51
52 namespace vkt
53 {
54 namespace api
55 {
56
57 namespace
58 {
59
60 void createBufferViewTests (tcu::TestCaseGroup* bufferViewTests)
61 {
62         tcu::TestContext&       testCtx         = bufferViewTests->getTestContext();
63
64         bufferViewTests->addChild(createBufferViewCreateTests   (testCtx));
65         bufferViewTests->addChild(createBufferViewAccessTests   (testCtx));
66 }
67
68 void createApiTests (tcu::TestCaseGroup* apiTests)
69 {
70         tcu::TestContext&       testCtx         = apiTests->getTestContext();
71
72         apiTests->addChild(createVersionSanityCheckTests                        (testCtx));
73         apiTests->addChild(createDriverPropertiesTests                          (testCtx));
74         apiTests->addChild(createSmokeTests                                                     (testCtx));
75         apiTests->addChild(api::createFeatureInfoTests                          (testCtx));
76         apiTests->addChild(createDeviceInitializationTests                      (testCtx));
77         apiTests->addChild(createObjectManagementTests                          (testCtx));
78         apiTests->addChild(createBufferTests                                            (testCtx));
79         apiTests->addChild(createBufferMarkerTests                                      (testCtx));
80         apiTests->addChild(createTestGroup                                                      (testCtx, "buffer_view",        "BufferView tests",             createBufferViewTests));
81         apiTests->addChild(createCommandBuffersTests                            (testCtx));
82         apiTests->addChild(createCopiesAndBlittingTests                         (testCtx));
83         apiTests->addChild(createImageClearingTests                                     (testCtx));
84         apiTests->addChild(createFillAndUpdateBufferTests                       (testCtx));
85         apiTests->addChild(createDescriptorPoolTests                            (testCtx));
86         apiTests->addChild(createNullHandleTests                                        (testCtx));
87         apiTests->addChild(createGranularityQueryTests                          (testCtx));
88         apiTests->addChild(createMemoryCommitmentTests                          (testCtx));
89         apiTests->addChild(createExternalMemoryTests                            (testCtx));
90         apiTests->addChild(createMaintenance3Tests                                      (testCtx));
91         apiTests->addChild(createDescriptorSetTests                                     (testCtx));
92         apiTests->addChild(createPipelineTests                                          (testCtx));
93         apiTests->addChild(createMemoryRequirementInvarianceTests       (testCtx));
94         apiTests->addChild(createToolingInfoTests                                       (testCtx));
95 }
96
97 } // anonymous
98
99 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
100 {
101         return createTestGroup(testCtx, "api", "API Tests", createApiTests);
102 }
103
104 } // api
105 } // vkt