ActsLibuvTest.cpp 1.5 KB
Newer Older
B
bayanxing 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include <gtest/gtest.h>
#include <stdlib.h>
L
lushi1202 已提交
18
#include "ActsLibuvTest.h"
B
bayanxing 已提交
19 20 21 22 23 24 25 26 27
extern "C"{
#include "runner.h"
}

namespace OHOS {
    using namespace std;
    using namespace testing::ext;

    // Preset action of the test suite, which is executed before the first test case
L
lushi1202 已提交
28
    void ActsLibuvTest::SetUpTestCase(void)
B
bayanxing 已提交
29 30 31
    {
    }
    // Test suite cleanup action, which is executed after the last test case
L
lushi1202 已提交
32
    void ActsLibuvTest::TearDownTestCase(void)
B
bayanxing 已提交
33 34 35
    {
    }
    // Preset action of the test case
L
lushi1202 已提交
36
    void ActsLibuvTest::SetUp()
B
bayanxing 已提交
37 38 39
    {
    }
    // Cleanup action of the test case
L
lushi1202 已提交
40
    void ActsLibuvTest::TearDown()
B
bayanxing 已提交
41 42 43
    {
    }

L
lushi1202 已提交
44
    HWTEST_F(ActsLibuvTest, TestLibuvTestCase001, Function | MediumTest | Level2)
B
bayanxing 已提交
45
    {
L
lushi1202 已提交
46
        printf("------start ActsLibuvTest------\n");
47
        system("/data/local/tmp/libuvruntest");
B
bayanxing 已提交
48
        EXPECT_TRUE(true);
L
lushi1202 已提交
49
        printf("------end ActsLibuvTest------\n");
B
bayanxing 已提交
50 51
    }
}