Test::Lintian::Helper(3)

πŸ’– Test::Lintian::Helper πŸ’–

okay so bestie, meet Test::Lintian::Helper β€” the lil squad of helper functions that show up for the various testing parts of the Debian Package Checker. it lives in section 3 of the manual (iykyk), and it's here to make your testing life so much easier. πŸŽ€


✨ SYNOPSIS ✨

use Test::Lintian::Helper qw(get_latest_policy);
my $policy_version = get_latest_policy();

like, that's literally the whole vibe check β€” one use, one function, and you're off. πŸ’…


🌸 DESCRIPTION 🌸

Helper functions for preparing and running Lintian tests. that's the whole thing! they prep, they run, they slay. no cap. ✨


πŸ¦‹ FUNCTIONS πŸ¦‹

  • cache_dpkg_architecture_values() β€” makes sure the output from dpkg-architecture has been cached. once it's cached, it's cached, periodt. πŸ’Ύ
  • get_latest_policy() β€” returns a list with two elements, bestie:
    1. the most recent version of the Debian policy πŸ“œ
    2. its effective date πŸ“…

two-for-one, iconic behaviour honestly.

  • get_recommended_debhelper_version() β€” returns the version of debhelper that's recommended in 'debhelper/compat-level', grabbed via Lintian::Data, and it's all relative to the established LINTIAN_BASE. 🫢
  • copy_dir_contents(SRC_DIR, TARGET_DIR) β€” populates TARGET_DIR with the files and dirs from SRC_DIR, preserving all attributes but dereferencing links. and here's the cute part: for an empty directory, no dummy file is required. πŸ’–
  • rfc822date(EPOCH) β€” hands you back a string with the date and time described by EPOCH, all formatted according to RFC822. classy. sophisticated. πŸ•°οΈ

πŸ’€ reminder: keep your placeholders right β€” SRC_DIR, TARGET_DIR and EPOCH are exactly what they look like. don't go renaming anything, bestie, the functions will NOT vibe with that.

and that's the page!! brought to you by 🌈 Lintian v2.139.0ubuntu2 🌈, dated 2026-10-08 β€” go forth and test things, my main character, you're gonna eat. πŸ‘‘πŸ’…βœ¨

πŸ“¦ where this page comes from