This is an automated email from the git hooks/post-receive script. gregoa pushed a commit to annotated tag v0.22 in repository liblinux-distribution-perl.
commit 33f18b8e731e6dd6638fc7afcd5cfa610b0ca280 Author: Michiel Beijen <[email protected]> Date: Mon Dec 8 20:04:03 2014 +0000 Added tests for RHEL 7. --- MANIFEST | 3 +++ t/rhel7.t | 14 ++++++++++++++ t/rhel7/files | 5 +++++ t/rhel7/redhat-release | 1 + 4 files changed, 23 insertions(+) diff --git a/MANIFEST b/MANIFEST index c45194e..5ebadb8 100644 --- a/MANIFEST +++ b/MANIFEST @@ -31,6 +31,9 @@ t/oel6/redhat-release t/rhel6.t t/rhel6/files t/rhel6/redhat-release +t/rhel7.t +t/rhel7/files +t/rhel7/redhat-release t/scientific6.t t/scientific6/files t/scientific6/redhat-release diff --git a/t/rhel7.t b/t/rhel7.t new file mode 100644 index 0000000..fce7498 --- /dev/null +++ b/t/rhel7.t @@ -0,0 +1,14 @@ +use 5.006000; +use strict; +use warnings; + +use Test::More tests => 2; +use lib '../lib/'; +use Linux::Distribution; + +local $Linux::Distribution::release_files_directory='t/rhel7/'; +my $linux = Linux::Distribution->new; +my $distro = $linux->distribution_name(); +is($distro,'redhat'); +my $version = $linux->distribution_version(); +is ($version,'7.0'); diff --git a/t/rhel7/files b/t/rhel7/files new file mode 100644 index 0000000..36395eb --- /dev/null +++ b/t/rhel7/files @@ -0,0 +1,5 @@ +exists: +redhat-release +do not: +redhat_version +lsb-release diff --git a/t/rhel7/redhat-release b/t/rhel7/redhat-release new file mode 100644 index 0000000..ef10e5a --- /dev/null +++ b/t/rhel7/redhat-release @@ -0,0 +1 @@ +Red Hat Enterprise Linux Server release 7.0 (Maipo) -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/liblinux-distribution-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits
