Test2::...r::Files(3)
π NAME π
Test2::IPC::Driver::Files β the temp-dir + files concurrency model, bestie. That's the whole vibe: it's the manual page for Test2::...r::Files(3) and it's lowkey the workhorse nobody claps for.
β¨ DESCRIPTION β¨
Okay so listen. This is the default concurrency model for Test2, and it's also the fallback one β like, the reliable friend who shows up no matter what. π«Ά
What it does: it sends events between processes and threads using serialized files in a temporary directory. That's it. That's the whole mechanism. Files in a tmpdir, vibes intact.
Is it fast? Ngl, not particularly π β this is not the speedrun build. But it works everywhere, and honestly? That's giving main character energy. Portability queen. π
πΈ SYNOPSIS πΈ
use Test2::IPC::Driver::Files;
# IPC is now enabled
Literally two lines and you're done. Slay. β¨
π ENVIRONMENT VARIABLES π
These are your little dials, bestie β set them and the driver behaves accordingly:
T2_KEEP_TEMPDIR=0β when this is true, the tempdir that the IPC driver uses will not be deleted when the test is done. So it just... stays there. Forever. Like a screenshot you forgot to delete. π₯T2_TEMPDIR_TEMPLATE='test2-XXXXXX'β this one lets you set the template for the IPC temp dir. The template should follow the template specifications fromFile::Temp. Iykyk β don't just make up your own placeholder rules, followFile::Temp's, ok? π
π¦ SEE ALSO π¦
Check out Test2::IPC::Driver for methods. That's where the actual method docs live, so go look there if you need the how-to. π«‘
π SOURCE π
The source code repository for Test2 can be found at <https://github.com/Test-More/test-more/>. Go star it, go read it, go be obsessed. β
π MAINTAINERS π
Chad Granum <exodist@cpan.org>
π AUTHORS π
Chad Granum <exodist@cpan.org>
π COPYRIGHT π
Copyright Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <https://dev.perl.org/licenses/>
fr fr that's the whole page. No cap, no skipped sections. π
Okay and last thing β the official paperwork says this page ships with perl v5.42.0, dated 2025-07-28, and the manual name is Test2::...r::Files(3) (the truncated little gremlin in the header). Byeee, go keep your tempdirs cute π§π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Test-Simple 1.302214-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms