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 fromdpkg-architecturehas been cached. once it's cached, it's cached, periodt. πΎget_latest_policy()β returns a list with two elements, bestie:- the most recent version of the Debian policy π
- its effective date π
two-for-one, iconic behaviour honestly.
get_recommended_debhelper_version()β returns the version ofdebhelperthat's recommended in'debhelper/compat-level', grabbed viaLintian::Data, and it's all relative to the establishedLINTIAN_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
- ubuntu stonking: lintian 2.139.0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms