[SCM] Debian packaging of Sys-CPU CPAN distribution branch, master, updated. debian/0.52-1-7-g3e221d1

gregor herrmann gregoa at debian.org
Fri Jun 29 14:07:45 UTC 2012


The following commit has been merged in the master branch:
commit 85de6f59f0453cc7293905fc1724117eb988dc7f
Author: gregor herrmann <gregoa at debian.org>
Date:   Fri Jun 29 15:53:48 2012 +0200

    New patch Test-More.patch: rewrite test using Test::More
    
    and mark the cpu_type test as TODO, since /proc/cpuinfo doesn't always
    report the requested information.
    
    Closes: #679135

diff --git a/debian/patches/Test-More.patch b/debian/patches/Test-More.patch
new file mode 100644
index 0000000..6553870
--- /dev/null
+++ b/debian/patches/Test-More.patch
@@ -0,0 +1,27 @@
+Description: rewrite test with Test::More, mark test for CPU type as TODO
+Origin: vendor
+Bug-Debian: http://bugs.debian.org/679135
+Forwarded: no
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2012-06-29
+
+--- /dev/null
++++ b/t/Sys-CPU-Test-More.t
+@@ -0,0 +1,17 @@
++#!/usr/bin/perl
++
++use Test::More tests => 4;
++
++BEGIN { use_ok('Sys::CPU'); }
++
++$number = &Sys::CPU::cpu_count();
++ok( defined($number), "CPU Count: $number" );
++
++$speed = &Sys::CPU::cpu_clock();
++ok( defined($speed), "CPU Speed: $speed" );
++
++TODO: {
++    local $TODO = "/proc/cpuinfo doesn't always report 'model name' or 'machine' ...";
++    $type = &Sys::CPU::cpu_type();
++    ok( defined($type), "CPU Type:  $type" );
++}
diff --git a/debian/patches/series b/debian/patches/series
index d9cecab..3ec37b6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 test-cpu_type.patch
+Test-More.patch

-- 
Debian packaging of Sys-CPU CPAN distribution



More information about the Pkg-perl-cvs-commits mailing list