File: 00-version.t

package info (click to toggle)
libgeo-libproj-ffi-perl 1.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: perl: 1,339; makefile: 11
file content (22 lines) | stat: -rw-r--r-- 431 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!perl
use strict;
use warnings;

use Test::More;

plan skip_all => "Version check not requested" unless
	$ENV{EXTENDED_TESTING} || $ENV{RELEASE_TESTING}
	|| $ENV{AUTHOR_TESTING} || $ENV{AUTOMATED_TESTING};
plan tests => 1;

my $bin = 'cs2cs';

my $out = `$bin 2>&1` // '';
my ($version) = $out =~ m/\b(\d+\.\d+(?:\.\d\w*)?)\b/;

diag sprintf "System PROJ %s", $version // "";

# need to run at least one test
pass;

done_testing;