summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-06-07 12:37:42 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-06-07 12:37:42 -0400
commit8c08151643329be88fa8f45c72a7b4c7c30ce218 (patch)
tree164f38a34b7790fef0de35b7786613632e5fc18b /tests
parent730fc4e9bae5a157c83db8061c2c6831a297e959 (diff)
downloaddynamic-extension-8c08151643329be88fa8f45c72a7b4c7c30ce218.tar.gz
Adjusted DE tests to cover all policy configurations
Diffstat (limited to 'tests')
-rw-r--r--tests/de_level_tag.cpp25
-rw-r--r--tests/de_level_tomb.cpp25
-rw-r--r--tests/de_tier_tag.cpp25
-rw-r--r--tests/de_tier_tomb.cpp25
-rw-r--r--tests/dynamic_extension_tests.inc (renamed from tests/dynamic_extension_tests.cpp)12
5 files changed, 100 insertions, 12 deletions
diff --git a/tests/de_level_tag.cpp b/tests/de_level_tag.cpp
new file mode 100644
index 0000000..91f158c
--- /dev/null
+++ b/tests/de_level_tag.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::LEVELING, DeletePolicy::TAGGING> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/de_level_tomb.cpp b/tests/de_level_tomb.cpp
new file mode 100644
index 0000000..c3dc5df
--- /dev/null
+++ b/tests/de_level_tomb.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::LEVELING, DeletePolicy::TOMBSTONE> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/de_tier_tag.cpp b/tests/de_tier_tag.cpp
new file mode 100644
index 0000000..9b6b5a4
--- /dev/null
+++ b/tests/de_tier_tag.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::TEIRING, DeletePolicy::TAGGING> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/de_tier_tomb.cpp b/tests/de_tier_tomb.cpp
new file mode 100644
index 0000000..82942fd
--- /dev/null
+++ b/tests/de_tier_tomb.cpp
@@ -0,0 +1,25 @@
+/*
+ * tests/dynamic_extension_tests.cpp
+ *
+ * Unit tests for Dynamic Extension Framework
+ *
+ * Copyright (C) 2023 Douglas Rumbaugh <drumbaugh@psu.edu>
+ * Dong Xie <dongx@psu.edu>
+ *
+ * All rights reserved. Published under the Modified BSD License.
+ *
+ */
+#include <set>
+#include <random>
+#include <algorithm>
+
+#include "testing.h"
+#include "framework/DynamicExtension.h"
+#include "shard/WIRS.h"
+
+#include <check.h>
+using namespace de;
+
+typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>, LayoutPolicy::TEIRING, DeletePolicy::TOMBSTONE> DE;
+
+#include "dynamic_extension_tests.inc"
diff --git a/tests/dynamic_extension_tests.cpp b/tests/dynamic_extension_tests.inc
index 41400c5..f94a294 100644
--- a/tests/dynamic_extension_tests.cpp
+++ b/tests/dynamic_extension_tests.inc
@@ -9,18 +9,6 @@
* All rights reserved. Published under the Modified BSD License.
*
*/
-#include <set>
-#include <random>
-#include <algorithm>
-
-#include "testing.h"
-#include "framework/DynamicExtension.h"
-#include "shard/WIRS.h"
-
-#include <check.h>
-using namespace de;
-
-typedef DynamicExtension<WRec, WIRS<WRec>, WIRSQuery<WRec>> DE;
START_TEST(t_create)
{