Test::Lintian::Filter(3)
π Test::Lintian::Filter(3) π
okay bestie, you found the page for Test::Lintian::Filter β it's a Perl module (yeah, (3) means Perl, iykyk) from Lintian, the Debian package checker. it's literally just a lil toolbox of functions that figure out which tests you actually wanna run. no cap. π
β¨ NAME β¨
Test::Lintian::Filter β Functions to select with tests to run πΈ
(yes, the typo is their typo, I'm keeping it exactly as-is, periodt π )
π¦ SYNOPSIS π¦
use Test::Lintian::Filter qw(find_selected_lintian_testpaths);
my @testpaths = find_selected_lintian_testpaths('suite:changes');
look at that. chef's kiss. you import the one function you want, you hand it a selection string, you get test paths back. iconic. β¨
π DESCRIPTION π
so these are Functions that parse the optional argument 'only_run' β that's the thing that tells Lintian which tests are supposed to run. then it finds them. that's the whole vibe. π«Ά
π FUNCTIONS π
π get_suitepath(TEST_SET, SUITE)
Returns a string containing all test belonging to suite SUITE relative to path TEST_SET. π
ngl that's the original wording and it's just as grammatically unhinged as it sounds, but the meaning is clear: you give it a test set and a suite, it hands you back a string with everything in that suite, positioned relative to the test set path.
π find_selected_scripts(SCRIPT_PATH, ONLY_RUN)
Find all test scripts in SCRIPT_PATH that are identified by the user's selection string ONLY_RUN. π₯
π find_selected_lintian_testpaths(TEST_SET, ONLY_RUN)
Find all those test paths with Lintian tests located in the directory TEST_SET and identified by the user's selection string ONLY_RUN. π¦
π find_all_testpaths(PATH)
Returns an array containing all test paths located under PATH. They are identified as test paths by a specially named file containing the test description (presently 'desc'). πΈ
so like β a directory is only a "test path" if it's got that magic little desc file in it. that's the vibe check. pass it, you're a test. π
π find_testpaths_by_name(PATH, NAME)
Returns an array containing all test paths with the name NAME located under PATH. The test paths are identified as such by a specially named file containing the test description (presently 'desc'). β
π find_all_tags(TEST_PATH)
Returns an array containing all tags that somehow concern the test located in TEST_PATH. π
"somehow concern" β love that energy, very much "we know it when we see it". keeping the wording, bestie. π
π that's the whole thing π
slay. go run your tests, main character. π
this page is from Lintian v2.139.0ubuntu2, dated 2026-10-08 β yeah, from the future, we're just built different π°οΈβ¨
π¦ 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