summaryrefslogtreecommitdiffstats
path: root/src/usr/example/test/exampletest.H
blob: ec2e60dbaeaf1175955e1916c965161c5377c38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef __TEST_EXAMPLETEST_H
#define __TEST_EXAMPLETEST_H

/**
 *  @file exampletest.H
 *
 *  @brief Example for people to use when writing test cases for their module.
*/

#include <cxxtest/TestSuite.H>
#include <example/example.H>

class ExampleTest: public CxxTest::TestSuite
{
public:

    /**
     * @test Test Description
     */
    void testExample1(void)
    {
        uint64_t    l_rc = 0;
        l_rc = example1_function();
        if(l_rc)
        {
            TS_FAIL("Call to example1_function1 failed!");
        }
    }

    /**
     * @test Test Description
     */
    void testExample2(void)
    {
        // Call functions and validate results
        // TS_FAIL("Failed test call to example2 function");
    }

    /**
     * @test Test Description
     */
    void testExample3(void)
    {
        // Call functions and validate results
        // TS_FAIL("Failed test call to example3 function");
    }
    void testExample4(void)
    {
        // Call functions and validate results
        // TS_FAIL("Failed test call to example3 function");
    }
    void testExample5(void)
    {
        // Call functions and validate results
        // TS_FAIL("Failed test call to example3 function");
    }

};

#endif

OpenPOWER on IntegriCloud