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