---
name: "Test::Lintian::Filter"
section: "3"
platform: "linux"
package: "lintian"
version: "2.122.0"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Test::Lintian::Filter"
---

# Test::Lintian::Filter(3)

## NAME

Test::Lintian::Filter -- Functions to select with tests to run

## SYNOPSIS

```
  use Test::Lintian::Filter qw(find_selected_lintian_testpaths);
  my @testpaths = find_selected_lintian_testpaths('suite:changes');
```

## DESCRIPTION

Functions that parse the optional argument 'only\_run' to find the tests that are supposed to run.

## FUNCTIONS

- get\_suitepath(TEST\_SET, SUITE)

  Returns a string containing all test belonging to suite SUITE relative to path TEST\_SET.

- 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').

- 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.
