Merge "Ignore A channel in EGL RGB5_A1 clear color tests" into oc-dev am: 49883d1448
[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 "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 #include "vktApiGetMemoryCommitment.hpp"
42 #include "vktApiExternalMemoryTests.hpp"
43
44 namespace vkt
45 {
46 namespace api
47 {
48
49 namespace
50 {
51
52 void createBufferViewTests (tcu::TestCaseGroup* bufferViewTests)
53 {
54         tcu::TestContext&       testCtx         = bufferViewTests->getTestContext();
55
56         bufferViewTests->addChild(createBufferViewCreateTests   (testCtx));
57         bufferViewTests->addChild(createBufferViewAccessTests   (testCtx));
58 }
59
60 void createApiTests (tcu::TestCaseGroup* apiTests)
61 {
62         tcu::TestContext&       testCtx         = apiTests->getTestContext();
63
64         apiTests->addChild(createSmokeTests                                     (testCtx));
65         apiTests->addChild(api::createFeatureInfoTests          (testCtx));
66         apiTests->addChild(createDeviceInitializationTests      (testCtx));
67         apiTests->addChild(createObjectManagementTests          (testCtx));
68         apiTests->addChild(createBufferTests                            (testCtx));
69         apiTests->addChild(createTestGroup                                      (testCtx, "buffer_view",        "BufferView tests",             createBufferViewTests));
70         apiTests->addChild(createCommandBuffersTests            (testCtx));
71         apiTests->addChild(createCopiesAndBlittingTests         (testCtx));
72         apiTests->addChild(createImageClearingTests                     (testCtx));
73         apiTests->addChild(createFillAndUpdateBufferTests       (testCtx));
74         apiTests->addChild(createDescriptorPoolTests            (testCtx));
75         apiTests->addChild(createNullHandleTests                        (testCtx));
76         apiTests->addChild(createGranularityQueryTests          (testCtx));
77         apiTests->addChild(createMemoryCommitmentTests          (testCtx));
78         apiTests->addChild(createExternalMemoryTests            (testCtx));
79 }
80
81 } // anonymous
82
83 tcu::TestCaseGroup* createTests (tcu::TestContext& testCtx)
84 {
85         return createTestGroup(testCtx, "api", "API Tests", createApiTests);
86 }
87
88 } // api
89 } // vkt