diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/scripts/02-minimum-version | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/scripts/02-minimum-version')
l--------- | t/scripts/02-minimum-version/bin.t | 1 | ||||
l--------- | t/scripts/02-minimum-version/lib.t | 1 | ||||
l--------- | t/scripts/02-minimum-version/private.t | 1 | ||||
-rwxr-xr-x | t/scripts/02-minimum-version/runner.pl | 31 | ||||
l--------- | t/scripts/02-minimum-version/test-scripts.t | 1 |
5 files changed, 35 insertions, 0 deletions
diff --git a/t/scripts/02-minimum-version/bin.t b/t/scripts/02-minimum-version/bin.t new file mode 120000 index 0000000..c316f2d --- /dev/null +++ b/t/scripts/02-minimum-version/bin.t @@ -0,0 +1 @@ +runner.pl
\ No newline at end of file diff --git a/t/scripts/02-minimum-version/lib.t b/t/scripts/02-minimum-version/lib.t new file mode 120000 index 0000000..c316f2d --- /dev/null +++ b/t/scripts/02-minimum-version/lib.t @@ -0,0 +1 @@ +runner.pl
\ No newline at end of file diff --git a/t/scripts/02-minimum-version/private.t b/t/scripts/02-minimum-version/private.t new file mode 120000 index 0000000..c316f2d --- /dev/null +++ b/t/scripts/02-minimum-version/private.t @@ -0,0 +1 @@ +runner.pl
\ No newline at end of file diff --git a/t/scripts/02-minimum-version/runner.pl b/t/scripts/02-minimum-version/runner.pl new file mode 100755 index 0000000..b6dbac4 --- /dev/null +++ b/t/scripts/02-minimum-version/runner.pl @@ -0,0 +1,31 @@ +#!/usr/bin/perl + +use strict; +use warnings; + +use Const::Fast; +use Test::More; +use Test::Lintian; + +plan skip_all => 'Not needed for coverage of Lintian' + if $ENV{'LINTIAN_COVERAGE'}; +eval 'use Test::MinimumVersion'; +plan skip_all => 'Test::MinimumVersion required to run this test' if $@; + +const my $DOT => q{.}; + +# squeeze => 5.10.1, Wheezy => 5.14.2, stretch => 5.24.1 +our $REQUIRED = 'v5.24.1'; + +my @test_paths = program_name_to_perl_paths($0); +$ENV{'LINTIAN_BASE'} //= $DOT; + +all_minimum_version_ok($REQUIRED, { paths => \@test_paths, no_plan => 1}); + +done_testing(); + +# Local Variables: +# indent-tabs-mode: nil +# cperl-indent-level: 4 +# End: +# vim: syntax=perl sw=4 sts=4 sr et diff --git a/t/scripts/02-minimum-version/test-scripts.t b/t/scripts/02-minimum-version/test-scripts.t new file mode 120000 index 0000000..c316f2d --- /dev/null +++ b/t/scripts/02-minimum-version/test-scripts.t @@ -0,0 +1 @@ +runner.pl
\ No newline at end of file |