Test::S...er::Base(3)
π NAME π
Test;:Smoke::Syncer::Base β the base class for all the syncers. Every syncer out here is lowkey built on this one, no cap. π
β¨ DESCRIPTION β¨
Okay bestie, so this is the blueprint π«Ά β the parent vibe that all the syncer classes inherit from. Here's the whole tour:
Test::Smoke::Syncer::Baase->new(%arguments)
Hands you back a shiny new instance, fresh out the box β¨. It takes %arguments and gives you a blessed little object to play with.
$syncer->verbose
Get/Set verbosity π¬. That's it, that's the whole function. Use it to make your syncer chatty or make it hush.
$syncer->sync()
Abstract method. π«₯ It's giving "placeholder" β it exists so the subclasses know what shape to fill in. iykyk.
$syncer->_clear_souce_tree( [$tree_dir] )
[ Method | private-ish ] π
_clear_source_tree() nukes all files in the source-tree using File::Path::rmtree(). (Go peek at File::Path for the caveats, fr fr β that function has opinions.)
If $tree_dir isn't specified, "$self->{ddir}" is what gets used. πΈ
$syncer->_relocate_tree( $source_dir )
[ Method | Private-ish ] π¦
_relocate_tree() uses File::Copy::move() to move the source-tree from $source_dir over to its destination, which is "$self->{ddir}". Relocating, slaying, same thing π
$syncer->check_dot_git_patch( )
[ Method | Public ] π
check_dot_git_patch() checks if there's a .git_patch file chillin' in the source-tree.
It returns the patchlevel it found, or "undef" if it found nothing. π
$syncer->check_dot_patch( )
[ Method | Public ] π
check_dot_patch() checks if there's a .patch file hangin' out in the source-tree. And plot twist β if it's not there, it will try to create one (that's literally the situation for snapshots π).
It returns the patchlevel it found, or "undef". π
version_from_patchlevel_h( $ddir )
version_from_patchlevel_h() gives you back a "dotted" version, derived from the patchlevel.h file in the distribution. Dotted, as in, you know, with the dots. β
is_git_dir()
Checks β in a git way π β if we're inside a real, actual git repository directory. Not a fake one. Not a vibe. A real one.
make_dot_patch
If this is a git repo, it runs the "Porting/make_dot_patch.pl" script to generate the .patch file. Go little script go π
$syncer->clean_from_directory( $source_dir[, @leave_these] )
clean_from_directory() uses File::Find to grab the contents of $source_dir, compares all of that to {ddir}, and removes every other file that doesn't belong. Spring cleaning energy π§Ήβ¨
The contents of @leave_these should be in "MANIFEST-format" (go look at Test::Smoke::SourceTree for that one, bestie).
$syncer->pre_sync
pre_sync() is what the sync() methods should call to set up the sync environment π οΈ. Currently it's only useful on OpenVMS.
$syncer->post_sync
post_sync() is what the sync() methods should call to unset the sync environment π§Ό. Currently it's only useful on OpenVMS too.
π COPYRIGHT π
(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. Slay, honestly. π
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. π Yeah, that part's important, don't skip it.
And that's the whole page, bestie π«Ά β brought to you by perl v5.42.0, dated 2025-07-25, and officially filed under Test::S...er::Base(3). Mwah, periodt. π
β¨
π¦ where this page comes from
- fedora 43: perl-Test-Smoke 1.84-2.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms