Test::S...::Forest(3)

πŸ“¦
version 1.84 Β· 2 versions
, in fedora 43

πŸ¦‹ Test::Smoke::Syncer::Forest πŸ¦‹

okay bestie, listen up, this is the syncing girlie of the Test::Smoke::Syncer family and she does things a little differently, and honestly? iconic behaviour. πŸ’…

What she does is she sets up a master directory that is in sync with either a snapshot or the repository. Then she creates a copy of this master directory as a hardlink forest and the regenheaders.pl script is run (if found). Now the source-tree should be up to date and ready to be copied as a hardlink forest again, to its final destination. like. she's just out here duplicating whole trees with hardlinks and not a single byte wasted. main character energy fr fr. ✨

🫢 Shoutout to Nicholas Clark for donating this idea. king behaviour, we love to see it.

🌸 Test::Smoke::Syncer::Forest->new( %args ) 🌸

Keys for %args:

  • All keys from the other methods (depending on {fsync}) β€” yes she inherits, she's flexible like that πŸ’
  • fsync β€” which master sync method is to be used
  • mdir β€” master directory
  • fdir β€” intermediate directory (first hardlink forest)

πŸ’– $syncer->sync( ) πŸ’–

sync() starts with a "traditional" sync according to {ftype} in {mdir}. It then creates a copy of {mdir} in {fdir} with hardlinks an tries to run the regen_headers.pl script in {fdir}. This directory should now contain an up to date (working) source-tree wich again using hardlinks is copied to the destination directory {ddir}. πŸŽ€

so yeah, it's a whole little relay race: master dir β†’ intermediate hardlink forest β†’ maybe run a script β†’ boom, destination dir. passing the baton with hardlinks the entire way. obsessed. 🧚


(c) 2002-2013, All rights reserved.

  • Abe Timmerman <abeltje@cpan.org> πŸ’œ

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See:

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 🫢 no promises bestie, that's just how it is.

and that's the whole page!! 🌈 this one came from perl v5.42.0, dated 2025-07-25, and it's the Test::S...::Forest(3) manual page β€” mwah, slay, bye πŸ’‹

πŸ“¦ where this page comes from