summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/tests')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/burst_inserts.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/burst_inserts.cxx)0
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/csuite_style_example_test.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/csuite_style_example_test.cxx)2
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/hs_cleanup.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/hs_cleanup.cxx)0
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/operations_test.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/base_test.cxx)4
-rwxr-xr-xsrc/third_party/wiredtiger/test/cppsuite/tests/run.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/run.cxx)28
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/search_near_01.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/search_near_01.cxx)0
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/search_near_02.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/search_near_02.cxx)0
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/search_near_03.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/search_near_03.cxx)0
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp (renamed from src/third_party/wiredtiger/test/cppsuite/tests/example_test.cxx)4
9 files changed, 19 insertions, 19 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/burst_inserts.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/burst_inserts.cpp
index 81e0f717d6d..81e0f717d6d 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/burst_inserts.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/burst_inserts.cpp
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/csuite_style_example_test.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/csuite_style_example_test.cpp
index 50ca6f0da82..0b5a2966b2f 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/csuite_style_example_test.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/csuite_style_example_test.cpp
@@ -30,7 +30,7 @@
* This file provides an example of how to create a test in C++ using a few features from the
* framework if any. This file can be used as a template for quick testing and/or when stress
* testing is not required. For any stress testing, it is encouraged to use the framework, see
- * example_test.cxx and create_script.sh.
+ * test_template.cpp and create_script.sh.
*/
#include "test_harness/connection_manager.h"
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/hs_cleanup.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/hs_cleanup.cpp
index e3ead2e3818..e3ead2e3818 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/hs_cleanup.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/hs_cleanup.cpp
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/base_test.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/operations_test.cpp
index 7bb6e23205e..1554bbad58c 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/base_test.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/operations_test.cpp
@@ -34,7 +34,7 @@
*
* Can be used to create stress tests in various ways.
*/
-class base_test : public test_harness::test {
+class operations_test : public test_harness::test {
public:
- base_test(const test_harness::test_args &args) : test(args) {}
+ operations_test(const test_harness::test_args &args) : test(args) {}
};
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/run.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/run.cpp
index 150f8e0505a..09bc9b0a7df 100755
--- a/src/third_party/wiredtiger/test/cppsuite/tests/run.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/run.cpp
@@ -33,13 +33,13 @@
#include "test_harness/util/logger.h"
#include "test_harness/test.h"
-#include "base_test.cxx"
-#include "burst_inserts.cxx"
-#include "example_test.cxx"
-#include "hs_cleanup.cxx"
-#include "search_near_01.cxx"
-#include "search_near_02.cxx"
-#include "search_near_03.cxx"
+#include "burst_inserts.cpp"
+#include "hs_cleanup.cpp"
+#include "operations_test.cpp"
+#include "search_near_01.cpp"
+#include "search_near_02.cpp"
+#include "search_near_03.cpp"
+#include "test_template.cpp"
/* Declarations to avoid the error raised by -Werror=missing-prototypes. */
const std::string parse_configuration_from_file(const std::string &filename);
@@ -118,20 +118,20 @@ run_test(const std::string &test_name, const std::string &config, const std::str
test_harness::logger::log_msg(LOG_TRACE, "Configuration\t:" + config);
- if (test_name == "base_test")
- base_test(test_harness::test_args{config, test_name, wt_open_config}).run();
- else if (test_name == "example_test")
- example_test(test_harness::test_args{config, test_name, wt_open_config}).run();
- else if (test_name == "hs_cleanup")
+ if (test_name == "hs_cleanup")
hs_cleanup(test_harness::test_args{config, test_name, wt_open_config}).run();
else if (test_name == "burst_inserts")
burst_inserts(test_harness::test_args{config, test_name, wt_open_config}).run();
+ else if (test_name == "operations_test")
+ operations_test(test_harness::test_args{config, test_name, wt_open_config}).run();
else if (test_name == "search_near_01")
search_near_01(test_harness::test_args{config, test_name, wt_open_config}).run();
else if (test_name == "search_near_02")
search_near_02(test_harness::test_args{config, test_name, wt_open_config}).run();
else if (test_name == "search_near_03")
search_near_03(test_harness::test_args{config, test_name, wt_open_config}).run();
+ else if (test_name == "test_template")
+ test_template(test_harness::test_args{config, test_name, wt_open_config}).run();
else {
test_harness::logger::log_msg(LOG_ERROR, "Test not found: " + test_name);
error_code = -1;
@@ -154,8 +154,8 @@ main(int argc, char *argv[])
{
std::string cfg, config_filename, current_cfg, current_test_name, test_name, wt_open_config;
int64_t error_code = 0;
- const std::vector<std::string> all_tests = {"base_test", "burst_inserts", "example_test",
- "hs_cleanup", "search_near_01", "search_near_02", "search_near_03"};
+ const std::vector<std::string> all_tests = {"burst_inserts", "hs_cleanup", "operations_test",
+ "search_near_01", "search_near_02", "search_near_03", "test_template"};
/* Set the program name for error messages. */
(void)testutil_set_progname(argv);
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/search_near_01.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/search_near_01.cpp
index b9620c9d050..b9620c9d050 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/search_near_01.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/search_near_01.cpp
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/search_near_02.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/search_near_02.cpp
index ec9ec6edbbb..ec9ec6edbbb 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/search_near_02.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/search_near_02.cpp
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/search_near_03.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/search_near_03.cpp
index eac6216b351..eac6216b351 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/search_near_03.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/search_near_03.cpp
diff --git a/src/third_party/wiredtiger/test/cppsuite/tests/example_test.cxx b/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp
index d33b75c8174..d56be78d1c3 100644
--- a/src/third_party/wiredtiger/test/cppsuite/tests/example_test.cxx
+++ b/src/third_party/wiredtiger/test/cppsuite/tests/test_template.cpp
@@ -32,9 +32,9 @@
* Class that defines operations that do nothing as an example. This shows how database operations
* can be overridden and customized.
*/
-class example_test : public test_harness::test {
+class test_template : public test_harness::test {
public:
- example_test(const test_harness::test_args &args) : test(args) {}
+ test_template(const test_harness::test_args &args) : test(args) {}
void
run() override final