Read module test versions from component lock
Modular container CI / release-build (push) Has been cancelled
Signed modular release / publish (push) Successful in 23m44s
Nightly product integration / publish-nightly (push) Successful in 4m20s

This commit is contained in:
faumaray committed 2026-08-02 02:36:52 +03:00
1 parent 884fd2dd19
commit 0000c6232f
2 files changed
+27 -9

No files matched your search

+11 -8
View File
@@ -6,6 +6,7 @@
#include <dlfcn.h>
#include <array>
#include <string>
#include <string_view>
namespace
@@ -25,31 +26,31 @@ Void::Testing::Test component_module_descriptors_are_loadable()
.path = ECHOION_TEST_HOST,
.moduleId = "EchoionHost",
.stableComponentId = "EchoionHost",
.version = "2.0.0",
.version = ECHOION_TEST_HOST_VERSION,
},
ModuleExpectation{
.path = ECHOION_TEST_CORE,
.moduleId = "EchoionCore",
.stableComponentId = "EchoionCore",
.version = "2.0.0",
.version = ECHOION_TEST_CORE_VERSION,
},
ModuleExpectation{
.path = ECHOION_TEST_WEB,
.moduleId = "EchoionWeb",
.stableComponentId = "EchoionWeb",
.version = "2.0.0",
.version = ECHOION_TEST_WEB_VERSION,
},
ModuleExpectation{
.path = ECHOION_TEST_PLUGIN_INTERNAL,
.moduleId = "url-shortener-internal",
.stableComponentId = "EchoionPluginUrlShortenerInternal",
.version = "2.0.0",
.version = ECHOION_TEST_PLUGIN_INTERNAL_VERSION,
},
ModuleExpectation{
.path = ECHOION_TEST_PLUGIN_EXTERNAL,
.moduleId = "url-shortener-external",
.stableComponentId = "EchoionPluginUrlShortenerExternal",
.version = "2.0.0",
.version = ECHOION_TEST_PLUGIN_EXTERNAL_VERSION,
},
};
@@ -103,9 +104,11 @@ Void::Testing::Test component_module_descriptors_are_loadable()
std::string_view{stable->component_id.data,
stable->component_id.size},
expected.stableComponentId);
Void::Testing::expect_eq(stable->version_major, 2U);
Void::Testing::expect_eq(stable->version_minor, 0U);
Void::Testing::expect_eq(stable->version_patch, 0U);
const auto stableVersion =
std::to_string(stable->version_major) + "." +
std::to_string(stable->version_minor) + "." +
std::to_string(stable->version_patch);
Void::Testing::expect_eq(stableVersion, expected.version);
Void::Testing::expect(stable->api != nullptr);
if (stable->api != nullptr) {
Void::Testing::expect_eq(stable->api->struct_size,