From d3116573e427734b0b99a1d5bb006d5d4f1d8e0b Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Sun, 8 Feb 2026 14:39:44 -0500 Subject: [PATCH] system values test is online and the code is building again... --- .../tests_configuration/test_ini_parser.cpp | 1 + .../test_system_values.cpp | 49 ++++++++++++------- .../buildor/upgrade_hoople_to_feistymeow.sh | 1 + 3 files changed, 32 insertions(+), 19 deletions(-) diff --git a/nucleus/library/tests_configuration/test_ini_parser.cpp b/nucleus/library/tests_configuration/test_ini_parser.cpp index 32175447..d5576e6c 100644 --- a/nucleus/library/tests_configuration/test_ini_parser.cpp +++ b/nucleus/library/tests_configuration/test_ini_parser.cpp @@ -125,6 +125,7 @@ int test_ini_parser::execute() #endif critical_events::alert_message(astring(class_name()) + ": works for those functions tested."); + return 0; } diff --git a/nucleus/library/tests_configuration/test_system_values.cpp b/nucleus/library/tests_configuration/test_system_values.cpp index 3afd8abd..8d5d6d06 100644 --- a/nucleus/library/tests_configuration/test_system_values.cpp +++ b/nucleus/library/tests_configuration/test_system_values.cpp @@ -12,28 +12,37 @@ * Please send any updates to: fred@gruntose.com * \*****************************************************************************/ -#include +#include #include -#include -#include -#include +#include + +#include +#include #include -#include -#include +#include +#include +#include + +using namespace application; +using namespace basis; +using namespace configuration; +using namespace loggers; +using namespace textual; +using namespace unit_test; -#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger(), s) +#define LOG(s) EMERGENCY_LOG(program_wide_logger::get(), astring(s)) -class test_system_values : public application_shell +class test_system_values : virtual public unit_base, virtual public application_shell { public: test_system_values() - : application_shell(class_name()), + : application_shell(), events(system_values::EVENT_VALUES()), filters(system_values::FILTER_VALUES()), outcomes(system_values::OUTCOME_VALUES()) {} - IMPLEMENT_CLASS_NAME("test_system_values"); + DEFINE_CLASS_NAME("test_system_values"); virtual int execute(); private: @@ -46,17 +55,19 @@ int test_system_values::execute() { FUNCDEF("execute"); - log("Outcome Values"); - log("=============="); - log(outcomes.text_form()); + LOG("Outcome Values"); + LOG("=============="); + LOG(outcomes.text_form()); + + LOG("Filter Values"); + LOG("============="); + LOG(filters.text_form()); - log("Filter Values"); - log("============="); - log(filters.text_form()); + LOG("Event Values"); + LOG("============"); + LOG(events.text_form()); - log("Event Values"); - log("============"); - log(events.text_form()); + critical_events::alert_message(astring(class_name()) + ": works for those functions tested."); return 0; } diff --git a/scripts/buildor/upgrade_hoople_to_feistymeow.sh b/scripts/buildor/upgrade_hoople_to_feistymeow.sh index e3465a8f..61802fe4 100644 --- a/scripts/buildor/upgrade_hoople_to_feistymeow.sh +++ b/scripts/buildor/upgrade_hoople_to_feistymeow.sh @@ -155,6 +155,7 @@ standards and usages." | sed -e 's/guards::alert_message/critical_events::alert_message/g' \ | sed -e 's/^#include *$/#include /g' \ | sed -e 's/^#include *$/#include /g' \ + | sed -e 's/^#include *$/#include /g' \ | sed -e 's/^#include *$/#include /g' \ | sed -e 's/log_base::NO_ENDING/parser_bits::NO_ENDING/g' \ | sed -e 's/log_base::CRLF_AT_END/parser_bits::CRLF_AT_END/g' \ -- 2.34.1