From: Fred T. Hamster Date: Sun, 8 Feb 2026 19:25:42 +0000 (-0500) Subject: breaking change to add system values test X-Git-Tag: 2.140.190^2~17 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=ae93162bc63f0514998f31c4040d934165b4b95f;p=feisty_meow.git breaking change to add system values test working on it now. --- diff --git a/nucleus/library/tests_application/test_system_values.cpp b/nucleus/library/tests_application/test_system_values.cpp deleted file mode 100644 index 3afd8abd..00000000 --- a/nucleus/library/tests_application/test_system_values.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/*****************************************************************************\ -* * -* Name : test_system_values * -* Author : Chris Koeritz * -* * -******************************************************************************* -* Copyright (c) 2005-$now By Author. This program is free software; you can * -* redistribute it and/or modify it under the terms of the GNU General Public * -* License as published by the Free Software Foundation; either version 2 of * -* the License or (at your option) any later version. This is online at: * -* http://www.fsf.org/copyleft/gpl.html * -* Please send any updates to: fred@gruntose.com * -\*****************************************************************************/ - -#include -#include -#include -#include -#include -#include -#include -#include - -#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger(), s) - -class test_system_values : public application_shell -{ -public: - test_system_values() - : application_shell(class_name()), - events(system_values::EVENT_VALUES()), - filters(system_values::FILTER_VALUES()), - outcomes(system_values::OUTCOME_VALUES()) - {} - - IMPLEMENT_CLASS_NAME("test_system_values"); - virtual int execute(); - -private: - system_values events; - system_values filters; - system_values outcomes; -}; - -int test_system_values::execute() -{ - FUNCDEF("execute"); - - log("Outcome Values"); - log("=============="); - log(outcomes.text_form()); - - log("Filter Values"); - log("============="); - log(filters.text_form()); - - log("Event Values"); - log("============"); - log(events.text_form()); - - return 0; -} - -HOOPLE_MAIN(test_system_values, ) - diff --git a/nucleus/library/tests_configuration/makefile b/nucleus/library/tests_configuration/makefile index 8cc39336..6d87acea 100644 --- a/nucleus/library/tests_configuration/makefile +++ b/nucleus/library/tests_configuration/makefile @@ -2,7 +2,7 @@ include cpp/variables.def PROJECT = tests_configuration TYPE = test -TARGETS = test_ini_configurator.exe test_ini_parser.exe test_section_manager.exe test_tokenizer.exe +TARGETS = test_ini_configurator.exe test_ini_parser.exe test_section_manager.exe test_system_values.exe test_tokenizer.exe LOCAL_LIBS_USED = unit_test application loggers geometric configuration textual timely filesystem \ structures basis RUN_TARGETS = $(ACTUAL_TARGETS) diff --git a/nucleus/library/tests_configuration/test_system_values.cpp b/nucleus/library/tests_configuration/test_system_values.cpp new file mode 100644 index 00000000..3afd8abd --- /dev/null +++ b/nucleus/library/tests_configuration/test_system_values.cpp @@ -0,0 +1,65 @@ +/*****************************************************************************\ +* * +* Name : test_system_values * +* Author : Chris Koeritz * +* * +******************************************************************************* +* Copyright (c) 2005-$now By Author. This program is free software; you can * +* redistribute it and/or modify it under the terms of the GNU General Public * +* License as published by the Free Software Foundation; either version 2 of * +* the License or (at your option) any later version. This is online at: * +* http://www.fsf.org/copyleft/gpl.html * +* Please send any updates to: fred@gruntose.com * +\*****************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include + +#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger(), s) + +class test_system_values : public application_shell +{ +public: + test_system_values() + : application_shell(class_name()), + events(system_values::EVENT_VALUES()), + filters(system_values::FILTER_VALUES()), + outcomes(system_values::OUTCOME_VALUES()) + {} + + IMPLEMENT_CLASS_NAME("test_system_values"); + virtual int execute(); + +private: + system_values events; + system_values filters; + system_values outcomes; +}; + +int test_system_values::execute() +{ + FUNCDEF("execute"); + + log("Outcome Values"); + log("=============="); + log(outcomes.text_form()); + + log("Filter Values"); + log("============="); + log(filters.text_form()); + + log("Event Values"); + log("============"); + log(events.text_form()); + + return 0; +} + +HOOPLE_MAIN(test_system_values, ) +