[liblinux-distribution-perl] 32/34: Added tests for Debian 7.
gregor herrmann
gregoa at debian.org
Thu Jun 4 21:35:38 UTC 2015
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 838097fade01071b925b250c5bd4f5d4c5739968
Author: Michiel Beijen <michiel.beijen at gmail.com>
Date: Mon Dec 8 20:12:48 2014 +0000
Added tests for Debian 7.
---
MANIFEST | 3 +++
t/debian7.t | 14 ++++++++++++++
t/debian7/debian_version | 1 +
t/debian7/files | 5 +++++
4 files changed, 23 insertions(+)
diff --git a/MANIFEST b/MANIFEST
index 5ebadb8..fe99704 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -19,6 +19,9 @@ t/centos6/files
t/centos7.t
t/centos7/centos-release
t/centos7/files
+t/debian7.t
+t/debian7/debian_version
+t/debian7/files
t/fedora15.t
t/fedora15/fedora-release
t/fedora15/files
diff --git a/t/debian7.t b/t/debian7.t
new file mode 100644
index 0000000..572d797
--- /dev/null
+++ b/t/debian7.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/debian7/';
+my $linux = Linux::Distribution->new;
+my $distro = $linux->distribution_name();
+is($distro,'debian');
+my $version = $linux->distribution_version();
+is ($version,'7.7');
diff --git a/t/debian7/debian_version b/t/debian7/debian_version
new file mode 100644
index 0000000..25b629b
--- /dev/null
+++ b/t/debian7/debian_version
@@ -0,0 +1 @@
+7.7
diff --git a/t/debian7/files b/t/debian7/files
new file mode 100644
index 0000000..5cda829
--- /dev/null
+++ b/t/debian7/files
@@ -0,0 +1,5 @@
+exists:
+debian_version
+do not:
+redhat_version
+lsb-release
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/liblinux-distribution-perl.git
More information about the Pkg-perl-cvs-commits
mailing list