summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h b/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
index 5660944ae67..b489c84b8ec 100644
--- a/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
+++ b/src/third_party/wiredtiger/test/cppsuite/test_harness/test_harness.h
@@ -5,19 +5,27 @@
/* Required to build using older versions of g++. */
#include <cinttypes>
-extern "C" {
+/* 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