• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>
18 #include "ActsVulkanFastlinkedLibrary4Test.h"
19 #include "syscap_ndk.h"
20 
21 namespace OHOS {
22     using namespace std;
23     using namespace testing::ext;
24 
25     // Preset action of the test suite, which is executed before the first test case
SetUpTestCase(void)26     void ActsVulkanFastlinkedLibrary4Test::SetUpTestCase(void)
27     {
28     }
29     // Test suite cleanup action, which is executed after the last test case
TearDownTestCase(void)30     void ActsVulkanFastlinkedLibrary4Test::TearDownTestCase(void)
31     {
32     }
33     // Preset action of the test case
SetUp()34     void ActsVulkanFastlinkedLibrary4Test::SetUp()
35     {
36     }
37     // Cleanup action of the test case
TearDown()38     void ActsVulkanFastlinkedLibrary4Test::TearDown()
39     {
40     }
41 
42     /*
43      * @tc.number: TestVulkanFastlinkedLibraryTestCase004
44      * @tc.name  : TestVulkanFastlinkedLibraryTestCase004
45      * @tc.desc  : test vulkan xts
46      * @tc.size  : MediumTest
47      * @tc.type  : Function
48      * @tc.level : Level 1
49      */
50 
51     HWTEST_F(ActsVulkanFastlinkedLibrary4Test, TestVulkanFastlinkedLibraryTestCase004, Function | MediumTest | Level2)
52     {
53         printf("------start ActsVulkanFastlinkedLibrary4Test------\n");
54         if (canIUse("SystemCapability.Graphic.Vulkan")) {
55             system("/data/local/tmp/vulkan/vk-default/deqp_vk_execute "
56                 "--deqp-caselist-file=/data/local/tmp/vulkan/vk-default/pipeline/fast-linked-library4.txt "
57                 "--deqp-log-filename=ActsVulkanFastlinkedLibrary4Test.qpa");
58         }
59         EXPECT_TRUE(true);
60         printf("------end ActsVulkanFastlinkedLibrary4Test------\n");
61     }
62 }