Test::S...Snapshot(3)
π Test::Smoke::Syncer::Snapshot π
okay bestie, welcome to the Test::Smoke::Syncer::Snapshot page β it lives in the Perl docs under Test::S...Snapshot(3) (yes the header truncates it, she's mysterious like that β¨).
This one handles syncing from an HTTP snapshot (that's Porting/make_snapshot.pl, iykyk). It should only ever be visible from the "parent-package", so likeβ¦ no direct user-calls on this, bestie. it's giving backstage pass only π
πΈ METHODS πΈ
β¨ Test::Smoke::Syncer::Snapshot->new( %args ) β¨
This creates the new object, slay. Keys for %args:
ddirβ destination directory (./perl-current)snapurlβ the server to get the download fromsnaptarβ howto untar (Archive::Taror'gzip -d -c %s | tar x -')vβ verbose
β¨ $syncer->sync( ) β¨
Fetch the file. Then remove the current source-tree and extract the tarball or zip. no cap, she just does all of it π
β¨ $syncer->_fetch_archive( ) β¨
_fetch_archive() downloads the archive. that's the whole vibe π¦
β¨ $syncer->_extract_archive( ) β¨
_extract_archive() checks the tar attribute to find out how to extract the archive. This could be an external command or the Archive::Tar/Compress::Zlib modules. she's flexible like that π
β¨ $syncer->_extract_with_Archive_Tar( ) β¨
_extract_with_Archive_Tar() uses the Archive::Tar and Compress::Zlib modules to extract the archive. (This tested verry slow on my Linux box!) π literally so slow bestie, that typo is in the original and I'm keeping it periodt
β¨ $syncer->_extract_with_external( ) β¨
_extract_with_external() uses "$self->{snaptar}" as a sprintf() template to build a command.
Yes that might be dangerous! π
β¨ __get_directory_names( [$dir] ) β¨
[This is not a method]
__get_directory_names() retruns all directory names from "$dir || cwd()". It does not look at symlinks (there should not be any in the perl source-tree). π
β¨ __vms_untargz( $untargz, $tgzfile, $verbose ) β¨
Gunzip and extract the archive in $tgzfile using a small DCL script. VMS girlies rise up π
π 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.
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. π read that part twice bestie, she's serious.
perl v5.42.0 β 2025-07-25 β Test::S...Snapshot(3)
okay that's the whole page, you ate that π«Ά go forth and sync those snapshots, main character π β¨π
π¦ 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