closer to building test for dirtree fcopy
authorFred T. Hamster <fred@feistymeow.org>
Sat, 7 Feb 2026 22:56:42 +0000 (17:56 -0500)
committerFred T. Hamster <fred@feistymeow.org>
Sat, 7 Feb 2026 22:56:42 +0000 (17:56 -0500)
need one more fix in our upgrade script and that should do it.

nucleus/library/tests_filesystem/test_dirtree_fcopy.cpp
scripts/buildor/upgrade_hoople_to_feistymeow.sh

index 744b446d06ef7c86d28aea121c9f6f6c5445df9f..37c8b52c26f18cff263512b4bff6f23043c64ade 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <basis/functions.h>
 #include <basis/guards.h>
+#include <application/hoople_main.h>
 #include <application/application_shell.h>
 #include <loggers/console_logger.h>
 #include <filesystem/directory.h>
 #include <filesystem/heavy_file_ops.h>
 #include <structures/static_memory_gremlin.h>
 #include <textual/string_manipulation.h>
+#include <unit_test/unit_base.h>
+
+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());
 
index 899974c8bab2c7a4225905e7634fd46aa8ae130c..2f0d9ef7e3de70e98f3c0de2982a70d6e57ed2e9 100644 (file)
@@ -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"