From 942c1037225f845e911b1c2af1ff3938e0f90d97 Mon Sep 17 00:00:00 2001 From: "Fred T. Hamster" Date: Sat, 7 Feb 2026 17:56:42 -0500 Subject: [PATCH] closer to building test for dirtree fcopy need one more fix in our upgrade script and that should do it. --- .../tests_filesystem/test_dirtree_fcopy.cpp | 22 ++++++++++++++----- .../buildor/upgrade_hoople_to_feistymeow.sh | 1 + 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/nucleus/library/tests_filesystem/test_dirtree_fcopy.cpp b/nucleus/library/tests_filesystem/test_dirtree_fcopy.cpp index 744b446d..37c8b52c 100644 --- a/nucleus/library/tests_filesystem/test_dirtree_fcopy.cpp +++ b/nucleus/library/tests_filesystem/test_dirtree_fcopy.cpp @@ -18,6 +18,7 @@ #include #include +#include #include #include #include @@ -27,13 +28,24 @@ #include #include #include +#include + +using namespace application; +using namespace basis; +//using namespace configuration; +//using namespace filesystem; +using namespace loggers; +using namespace filesystem; +//using namespace textual; +//using namespace timely; +using namespace unit_test; #define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s) -class test_fcopy : public application_shell +class test_fcopy : virtual public unit_base, virtual public application_shell { public: - test_fcopy() : application_shell(static_class_name()) {} + test_fcopy() : application_shell() {} DEFINE_CLASS_NAME("test_dirtree_fcopy"); int execute(); }; @@ -64,12 +76,12 @@ int test_fcopy::execute() "the target directory could not be read"); LOG("calculating checksums for source."); - if (!source.calculate()) + if (!source.calculate(true)) non_continuable_error(class_name(), "directory_tree calculation", "the source tree could not be calculated"); LOG("calculating checksums for target."); - if (!target.calculate()) + if (!target.calculate(true)) non_continuable_error(class_name(), "directory_tree calculation", "the target tree could not be calculated"); @@ -83,7 +95,7 @@ int test_fcopy::execute() LOG("comparing the two trees."); filename_list diffs; directory_tree::compare_trees(source, source_start, target, target_start, - diffs); + diffs, file_info::EQUAL_CHECKSUM_TIMESTAMP_FILESIZE); //LOG("missing files:"); //LOG(diffs.text_form()); diff --git a/scripts/buildor/upgrade_hoople_to_feistymeow.sh b/scripts/buildor/upgrade_hoople_to_feistymeow.sh index 899974c8..2f0d9ef7 100644 --- a/scripts/buildor/upgrade_hoople_to_feistymeow.sh +++ b/scripts/buildor/upgrade_hoople_to_feistymeow.sh @@ -151,6 +151,7 @@ standards and usages." | sed -e 's/__argv/application::_global_argv/g' \ | sed -e 's/__argc/application::_global_argc/g' \ | sed -e 's/application_shell(static_class_name())/application_shell()/g' \ + | sed -e 's/guards::alert_message/critical_events::alert_message/g' \ | sed -e 's/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/[\/]*/\/\/\/\/\/\/\/\/\/\/\/\/\/\//g' \ >"$tempfile" -- 2.34.1