From bd689292e9c3697e5750ed73fd6d419e569c95dc Mon Sep 17 00:00:00 2001 From: skypjack Date: Fri, 1 May 2026 15:41:48 +0200 Subject: [PATCH] test: setup stl_ext tests --- test/CMakeLists.txt | 47 ++++++++++++------- test/entt/{stl => stl_ext}/algorithm.cpp | 0 test/entt/{stl => stl_ext}/array.cpp | 0 test/entt/{stl => stl_ext}/atomic.cpp | 0 test/entt/{stl => stl_ext}/bit.cpp | 0 test/entt/{stl => stl_ext}/cmath.cpp | 0 test/entt/{stl => stl_ext}/concepts.cpp | 0 test/entt/{stl => stl_ext}/cstddef.cpp | 0 test/entt/{stl => stl_ext}/cstdint.cpp | 0 .../{stl/ios.cpp => stl_ext/functional.cpp} | 0 test/entt/{stl/limits.cpp => stl_ext/ios.cpp} | 0 .../{stl/ostream.cpp => stl_ext/iterator.cpp} | 0 .../{stl/sstream.cpp => stl_ext/limits.cpp} | 0 .../{stl/string.cpp => stl_ext/memory.cpp} | 0 .../string_view.cpp => stl_ext/ostream.cpp} | 0 .../{stl/tuple.cpp => stl_ext/sstream.cpp} | 0 .../type_traits.cpp => stl_ext/string.cpp} | 0 .../utility.cpp => stl_ext/string_view.cpp} | 0 .../{stl/vector.cpp => stl_ext/tuple.cpp} | 0 test/entt/stl_ext/type_traits.cpp | 0 test/entt/stl_ext/utility.cpp | 0 test/entt/stl_ext/vector.cpp | 0 22 files changed, 29 insertions(+), 18 deletions(-) rename test/entt/{stl => stl_ext}/algorithm.cpp (100%) rename test/entt/{stl => stl_ext}/array.cpp (100%) rename test/entt/{stl => stl_ext}/atomic.cpp (100%) rename test/entt/{stl => stl_ext}/bit.cpp (100%) rename test/entt/{stl => stl_ext}/cmath.cpp (100%) rename test/entt/{stl => stl_ext}/concepts.cpp (100%) rename test/entt/{stl => stl_ext}/cstddef.cpp (100%) rename test/entt/{stl => stl_ext}/cstdint.cpp (100%) rename test/entt/{stl/ios.cpp => stl_ext/functional.cpp} (100%) rename test/entt/{stl/limits.cpp => stl_ext/ios.cpp} (100%) rename test/entt/{stl/ostream.cpp => stl_ext/iterator.cpp} (100%) rename test/entt/{stl/sstream.cpp => stl_ext/limits.cpp} (100%) rename test/entt/{stl/string.cpp => stl_ext/memory.cpp} (100%) rename test/entt/{stl/string_view.cpp => stl_ext/ostream.cpp} (100%) rename test/entt/{stl/tuple.cpp => stl_ext/sstream.cpp} (100%) rename test/entt/{stl/type_traits.cpp => stl_ext/string.cpp} (100%) rename test/entt/{stl/utility.cpp => stl_ext/string_view.cpp} (100%) rename test/entt/{stl/vector.cpp => stl_ext/tuple.cpp} (100%) create mode 100644 test/entt/stl_ext/type_traits.cpp create mode 100644 test/entt/stl_ext/utility.cpp create mode 100644 test/entt/stl_ext/vector.cpp diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0d44e0656..45bab9211 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -381,26 +381,37 @@ SETUP_BASIC_TEST( SETUP_BASIC_TEST( NAME stl SOURCES - entt/stl/algorithm.cpp - entt/stl/array.cpp - entt/stl/atomic.cpp - entt/stl/bit.cpp - entt/stl/cmath.cpp - entt/stl/concepts.cpp - entt/stl/cstddef.cpp - entt/stl/cstdint.cpp entt/stl/functional.cpp - entt/stl/ios.cpp entt/stl/iterator.cpp - entt/stl/limits.cpp entt/stl/memory.cpp - entt/stl/ostream.cpp - entt/stl/sstream.cpp - entt/stl/string.cpp - entt/stl/string_view.cpp - entt/stl/tuple.cpp - entt/stl/type_traits.cpp - entt/stl/utility.cpp - entt/stl/vector.cpp DEFS ENTT_USE_STL ) + +# Test stl_ext + +SETUP_BASIC_TEST( + NAME stl_ext + SOURCES + entt/stl_ext/algorithm.cpp + entt/stl_ext/array.cpp + entt/stl_ext/atomic.cpp + entt/stl_ext/bit.cpp + entt/stl_ext/cmath.cpp + entt/stl_ext/concepts.cpp + entt/stl_ext/cstddef.cpp + entt/stl_ext/cstdint.cpp + entt/stl_ext/functional.cpp + entt/stl_ext/ios.cpp + entt/stl_ext/iterator.cpp + entt/stl_ext/limits.cpp + entt/stl_ext/memory.cpp + entt/stl_ext/ostream.cpp + entt/stl_ext/sstream.cpp + entt/stl_ext/string.cpp + entt/stl_ext/string_view.cpp + entt/stl_ext/tuple.cpp + entt/stl_ext/type_traits.cpp + entt/stl_ext/utility.cpp + entt/stl_ext/vector.cpp + INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/include +) diff --git a/test/entt/stl/algorithm.cpp b/test/entt/stl_ext/algorithm.cpp similarity index 100% rename from test/entt/stl/algorithm.cpp rename to test/entt/stl_ext/algorithm.cpp diff --git a/test/entt/stl/array.cpp b/test/entt/stl_ext/array.cpp similarity index 100% rename from test/entt/stl/array.cpp rename to test/entt/stl_ext/array.cpp diff --git a/test/entt/stl/atomic.cpp b/test/entt/stl_ext/atomic.cpp similarity index 100% rename from test/entt/stl/atomic.cpp rename to test/entt/stl_ext/atomic.cpp diff --git a/test/entt/stl/bit.cpp b/test/entt/stl_ext/bit.cpp similarity index 100% rename from test/entt/stl/bit.cpp rename to test/entt/stl_ext/bit.cpp diff --git a/test/entt/stl/cmath.cpp b/test/entt/stl_ext/cmath.cpp similarity index 100% rename from test/entt/stl/cmath.cpp rename to test/entt/stl_ext/cmath.cpp diff --git a/test/entt/stl/concepts.cpp b/test/entt/stl_ext/concepts.cpp similarity index 100% rename from test/entt/stl/concepts.cpp rename to test/entt/stl_ext/concepts.cpp diff --git a/test/entt/stl/cstddef.cpp b/test/entt/stl_ext/cstddef.cpp similarity index 100% rename from test/entt/stl/cstddef.cpp rename to test/entt/stl_ext/cstddef.cpp diff --git a/test/entt/stl/cstdint.cpp b/test/entt/stl_ext/cstdint.cpp similarity index 100% rename from test/entt/stl/cstdint.cpp rename to test/entt/stl_ext/cstdint.cpp diff --git a/test/entt/stl/ios.cpp b/test/entt/stl_ext/functional.cpp similarity index 100% rename from test/entt/stl/ios.cpp rename to test/entt/stl_ext/functional.cpp diff --git a/test/entt/stl/limits.cpp b/test/entt/stl_ext/ios.cpp similarity index 100% rename from test/entt/stl/limits.cpp rename to test/entt/stl_ext/ios.cpp diff --git a/test/entt/stl/ostream.cpp b/test/entt/stl_ext/iterator.cpp similarity index 100% rename from test/entt/stl/ostream.cpp rename to test/entt/stl_ext/iterator.cpp diff --git a/test/entt/stl/sstream.cpp b/test/entt/stl_ext/limits.cpp similarity index 100% rename from test/entt/stl/sstream.cpp rename to test/entt/stl_ext/limits.cpp diff --git a/test/entt/stl/string.cpp b/test/entt/stl_ext/memory.cpp similarity index 100% rename from test/entt/stl/string.cpp rename to test/entt/stl_ext/memory.cpp diff --git a/test/entt/stl/string_view.cpp b/test/entt/stl_ext/ostream.cpp similarity index 100% rename from test/entt/stl/string_view.cpp rename to test/entt/stl_ext/ostream.cpp diff --git a/test/entt/stl/tuple.cpp b/test/entt/stl_ext/sstream.cpp similarity index 100% rename from test/entt/stl/tuple.cpp rename to test/entt/stl_ext/sstream.cpp diff --git a/test/entt/stl/type_traits.cpp b/test/entt/stl_ext/string.cpp similarity index 100% rename from test/entt/stl/type_traits.cpp rename to test/entt/stl_ext/string.cpp diff --git a/test/entt/stl/utility.cpp b/test/entt/stl_ext/string_view.cpp similarity index 100% rename from test/entt/stl/utility.cpp rename to test/entt/stl_ext/string_view.cpp diff --git a/test/entt/stl/vector.cpp b/test/entt/stl_ext/tuple.cpp similarity index 100% rename from test/entt/stl/vector.cpp rename to test/entt/stl_ext/tuple.cpp diff --git a/test/entt/stl_ext/type_traits.cpp b/test/entt/stl_ext/type_traits.cpp new file mode 100644 index 000000000..e69de29bb diff --git a/test/entt/stl_ext/utility.cpp b/test/entt/stl_ext/utility.cpp new file mode 100644 index 000000000..e69de29bb diff --git a/test/entt/stl_ext/vector.cpp b/test/entt/stl_ext/vector.cpp new file mode 100644 index 000000000..e69de29bb