[liblinux-distribution-perl] 33/34: Added tests for Ubuntu 14.04.
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 7044cad9115a5247f89f305874f7ef703d630d6a
Author: Michiel Beijen <michiel.beijen at gmail.com>
Date: Tue Dec 9 08:09:47 2014 +0100
Added tests for Ubuntu 14.04.
---
MANIFEST | 4 ++++
t/ubuntu1404.t | 14 ++++++++++++++
t/ubuntu1404/debian_version | 1 +
t/ubuntu1404/files | 5 +++++
t/ubuntu1404/lsb-release | 4 ++++
5 files changed, 28 insertions(+)
diff --git a/MANIFEST b/MANIFEST
index fe99704..1bee5ff 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -40,3 +40,7 @@ t/rhel7/redhat-release
t/scientific6.t
t/scientific6/files
t/scientific6/redhat-release
+t/ubuntu1404.t
+t/ubuntu1404/debian_version
+t/ubuntu1404/files
+t/ubuntu1404/lsb-release
diff --git a/t/ubuntu1404.t b/t/ubuntu1404.t
new file mode 100644
index 0000000..fc8b05a
--- /dev/null
+++ b/t/ubuntu1404.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/ubuntu1404/';
+my $linux = Linux::Distribution->new;
+my $distro = $linux->distribution_name();
+is($distro,'ubuntu');
+my $version = $linux->distribution_version();
+is ($version,'14.04');
diff --git a/t/ubuntu1404/debian_version b/t/ubuntu1404/debian_version
new file mode 100644
index 0000000..9a5939c
--- /dev/null
+++ b/t/ubuntu1404/debian_version
@@ -0,0 +1 @@
+jessie/sid
diff --git a/t/ubuntu1404/files b/t/ubuntu1404/files
new file mode 100644
index 0000000..5af1d78
--- /dev/null
+++ b/t/ubuntu1404/files
@@ -0,0 +1,5 @@
+exists:
+debian_version
+lsb-release
+do not:
+redhat_version
diff --git a/t/ubuntu1404/lsb-release b/t/ubuntu1404/lsb-release
new file mode 100644
index 0000000..3121fbc
--- /dev/null
+++ b/t/ubuntu1404/lsb-release
@@ -0,0 +1,4 @@
+DISTRIB_ID=Ubuntu
+DISTRIB_RELEASE=14.04
+DISTRIB_CODENAME=trusty
+DISTRIB_DESCRIPTION="Ubuntu 14.04.1 LTS"
--
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