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