1f6603c60Sopenharmony_ci/* 2f6603c60Sopenharmony_ci * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd. 3f6603c60Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4f6603c60Sopenharmony_ci * you may not use this file except in compliance with the License. 5f6603c60Sopenharmony_ci * You may obtain a copy of the License at 6f6603c60Sopenharmony_ci * 7f6603c60Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8f6603c60Sopenharmony_ci * 9f6603c60Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10f6603c60Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11f6603c60Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12f6603c60Sopenharmony_ci * See the License for the specific language governing permissions and 13f6603c60Sopenharmony_ci * limitations under the License. 14f6603c60Sopenharmony_ci */ 15f6603c60Sopenharmony_ci 16f6603c60Sopenharmony_ci#include <gtest/gtest.h> 17f6603c60Sopenharmony_ci#include <stdlib.h> 18f6603c60Sopenharmony_ci#include "ActsVulkanConditional_renderingTest.h" 19f6603c60Sopenharmony_ci#include "syscap_ndk.h" 20f6603c60Sopenharmony_ci 21f6603c60Sopenharmony_cinamespace OHOS { 22f6603c60Sopenharmony_ci using namespace std; 23f6603c60Sopenharmony_ci using namespace testing::ext; 24f6603c60Sopenharmony_ci 25f6603c60Sopenharmony_ci // Preset action of the test suite, which is executed before the first test case 26f6603c60Sopenharmony_ci void ActsVulkanConditional_renderingTest::SetUpTestCase(void) 27f6603c60Sopenharmony_ci { 28f6603c60Sopenharmony_ci } 29f6603c60Sopenharmony_ci // Test suite cleanup action, which is executed after the last test case 30f6603c60Sopenharmony_ci void ActsVulkanConditional_renderingTest::TearDownTestCase(void) 31f6603c60Sopenharmony_ci { 32f6603c60Sopenharmony_ci } 33f6603c60Sopenharmony_ci // Preset action of the test case 34f6603c60Sopenharmony_ci void ActsVulkanConditional_renderingTest::SetUp() 35f6603c60Sopenharmony_ci { 36f6603c60Sopenharmony_ci } 37f6603c60Sopenharmony_ci // Cleanup action of the test case 38f6603c60Sopenharmony_ci void ActsVulkanConditional_renderingTest::TearDown() 39f6603c60Sopenharmony_ci { 40f6603c60Sopenharmony_ci } 41f6603c60Sopenharmony_ci 42f6603c60Sopenharmony_ci HWTEST_F(ActsVulkanConditional_renderingTest, TestVulkanConditional_renderingTestCase, Function | MediumTest | Level2) 43f6603c60Sopenharmony_ci { 44f6603c60Sopenharmony_ci printf("------start ActsVulkanConditionalrenderingTest------\n"); 45f6603c60Sopenharmony_ci if (canIUse("SystemCapability.Graphic.Vulkan")) { 46f6603c60Sopenharmony_ci system("/data/local/tmp/vulkan/vk-default/deqp_vk_execute " 47f6603c60Sopenharmony_ci "--deqp-caselist-file=/data/local/tmp/vulkan/vk-default/conditional-rendering.txt " 48f6603c60Sopenharmony_ci "--deqp-log-filename=ActsVulkanConditionalrenderingTest.qpa"); 49f6603c60Sopenharmony_ci } 50f6603c60Sopenharmony_ci EXPECT_TRUE(true); 51f6603c60Sopenharmony_ci printf("------end ActsVulkanConditionalrenderingTest------\n"); 52f6603c60Sopenharmony_ci } 53f6603c60Sopenharmony_ci}