summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
blob: b489c84b8ec76ab7f0e043b6aa44b96148d7bf4d (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
/* Include guard. */
#ifndef TEST_HARNESS_H
#define TEST_HARNESS_H

/* Required to build using older versions of g++. */
#include <cinttypes>

/* Include various wiredtiger libs. */
#include "wiredtiger.h"
#include "wt_internal.h"

#include "configuration_settings.h"

namespace test_harness {
class test {
    public:
    configuration *_configuration;
    static const std::string _name;
    /*
     * All tests will implement this initially, the return value from it will indicate whether the
     * test was successful or not.
     */
    virtual int run() = 0;

    test(std::string config)
    {
        _configuration = new configuration(_name.c_str(), config.c_str());
    }
};
} // namespace test_harness

#endif