Test2::...r::Files(3)

πŸ“¦ version 1.302214, in opensuse-leap 16.0

πŸ’– 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 from File::Temp. Iykyk β€” don't just make up your own placeholder rules, follow File::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 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