summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/test/cppsuite/test_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/third_party/wiredtiger/test/cppsuite/test_config.c')
-rw-r--r--src/third_party/wiredtiger/test/cppsuite/test_config.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/test/cppsuite/test_config.c b/src/third_party/wiredtiger/test/cppsuite/test_config.c
new file mode 100644
index 00000000000..6d1585172c8
--- /dev/null
+++ b/src/third_party/wiredtiger/test/cppsuite/test_config.c
@@ -0,0 +1,28 @@
+/* DO NOT EDIT: automatically built by dist/api_config.py. */
+
+#include "wt_internal.h"
+
+static const WT_CONFIG_CHECK confchk_poc_test[] = {
+ {"collection_count", "int", NULL, "min=1,max=10", NULL, 0},
+ {"key_size", "int", NULL, "min=1,max=10000", NULL, 0},
+ {"values", "string", NULL, "choices=[\"first\",\"second\",\"third\"]", NULL, 0},
+ {NULL, NULL, NULL, NULL, NULL, 0}};
+
+static const WT_CONFIG_ENTRY config_entries[] = {
+ {"poc_test", "collection_count=1,key_size=10,values=first", confchk_poc_test, 3},
+ {NULL, NULL, NULL, 0}};
+
+/*
+ * __wt_test_config_match --
+ * Return the static configuration entry for a test.
+ */
+const WT_CONFIG_ENTRY *
+__wt_test_config_match(const char *test_name)
+{
+ const WT_CONFIG_ENTRY *ep;
+
+ for (ep = config_entries; ep->method != NULL; ++ep)
+ if (strcmp(test_name, ep->method) == 0)
+ return (ep);
+ return (NULL);
+}