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