Skip Menu |
 

This queue is for tickets about the System-Info CPAN distribution.

Report information
The Basics
Id: 119691
Status: resolved
Priority: 0/
Queue: System-Info

People
Owner: Nobody in particular
Requestors: jplesnik [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.049_01
Fixed in: 0.056

Attachments
Test-Smoke-1.70-Fix-cpuinfo-for-aarch64.patch



Subject: Test sysinfo.t failed on aarch64
The test sysinfo.t failed on architecture aarch64 with following error # Failed test 'no warnings' # at /usr/share/perl5/vendor_perl/Test/Builder.pm line 135. # There were 3 warning(s) # Previous test 9 'buildvm-aarch64-05.arm.fedoraproject.org' # Argument "" isn't numeric in sprintf at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 232. # at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 232. # Test::Smoke::SysInfo::Linux::linux_generic(Test::Smoke::SysInfo::Linux=HASH(0x2b03688)) called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 30 # Test::Smoke::SysInfo::Linux::prepare_sysinfo(Test::Smoke::SysInfo::Linux=HASH(0x2b03688)) called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Base.pm line 35 # Test::Smoke::SysInfo::Base::new("Test::Smoke::SysInfo::Linux") called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo.pm line 71 # Test::Smoke::SysInfo::new("Test::Smoke::SysInfo") called at t/sysinfo.t line 33 # # ---------- # Previous test 15 'buildvm-aarch64-05.arm.fedoraproject.org' # Argument "" isn't numeric in sprintf at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 232. # at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 232. # Test::Smoke::SysInfo::Linux::linux_generic(Test::Smoke::SysInfo::Linux=HASH(0x206bcb0)) called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 30 # Test::Smoke::SysInfo::Linux::prepare_sysinfo(Test::Smoke::SysInfo::Linux=HASH(0x206bcb0)) called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Base.pm line 35 # Test::Smoke::SysInfo::Base::new("Test::Smoke::SysInfo::Linux") called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo.pm line 71 # Test::Smoke::SysInfo::new("Test::Smoke::SysInfo") called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo.pm line 86 # Test::Smoke::SysInfo::sysinfo() called at t/sysinfo.t line 48 # # ---------- # Previous test 17 'sysinfo: buildvm-aarch64-05.arm.fedoraproject.org linux - 4.8.8-200.fc24.aarch64 [Fedora 26 (Rawhide)] aarch64' # Argument "" isn't numeric in sprintf at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 232. # at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 232. # Test::Smoke::SysInfo::Linux::linux_generic(Test::Smoke::SysInfo::Linux=HASH(0x2b03688)) called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Linux.pm line 30 # Test::Smoke::SysInfo::Linux::prepare_sysinfo(Test::Smoke::SysInfo::Linux=HASH(0x2b03688)) called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo/Base.pm line 35 # Test::Smoke::SysInfo::Base::new("Test::Smoke::SysInfo::Linux") called at /builddir/build/BUILD/Test-Smoke-1.70/blib/lib/Test/Smoke/SysInfo.pm line 71 # Test::Smoke::SysInfo::new("Test::Smoke::SysInfo") called at t/sysinfo.t line 56 # # Looks like you failed 1 test of 57. The function 'Test::Smoke::SysInfo::Base::linux_generic()' does not work for getting information about aarch64 CPU. I tried to used 'Test::Smoke::SysInfo::Base::linux_arm()' for aarch64 and it works for me. More information about system where the test failed: # uname -a Linux buildvm-aarch64-09.arm.fedoraproject.org 4.8.8-200.fc24.aarch64 #1 SMP Fri Nov 18 11:45:12 UTC 2016 aarch64 aarch64 aarch64 GNU/Linux # cat /proc/cpuinfo processor : 0 BogoMIPS : 100.00 Features : fp asimd evtstrm CPU implementer : 0x50 CPU architecture: 8 CPU variant : 0x0 CPU part : 0x000 CPU revision : 1 processor : 1 BogoMIPS : 100.00 Features : fp asimd evtstrm CPU implementer : 0x50 CPU architecture: 8 CPU variant : 0x0 CPU part : 0x000 CPU revision : 1 processor : 2 BogoMIPS : 100.00 Features : fp asimd evtstrm CPU implementer : 0x50 CPU architecture: 8 CPU variant : 0x0 CPU part : 0x000 CPU revision : 1 processor : 3 BogoMIPS : 100.00 Features : fp asimd evtstrm CPU implementer : 0x50 CPU architecture: 8 CPU variant : 0x0 CPU part : 0x000 CPU revision : 1
Subject: Test-Smoke-1.70-Fix-cpuinfo-for-aarch64.patch
diff -up Test-Smoke-1.70/lib/Test/Smoke/SysInfo/Linux.pm.orig Test-Smoke-1.70/lib/Test/Smoke/SysInfo/Linux.pm --- Test-Smoke-1.70/lib/Test/Smoke/SysInfo/Linux.pm.orig 2017-01-04 15:27:47.642762728 +0100 +++ Test-Smoke-1.70/lib/Test/Smoke/SysInfo/Linux.pm 2017-01-04 15:29:17.567235113 +0100 @@ -24,6 +24,7 @@ sub prepare_sysinfo { for ($self->get_cpu_type()) { /arm/ && do {$self->linux_arm(); last}; + /aarch64/ && do {$self->linux_arm(); last}; /ppc/ && do {$self->linux_ppc(); last}; /sparc/ && do {$self->linux_sparc(); last}; # default
From: ppisar [...] redhat.com
Download (untitled) / with headers
text/plain 569b
Dne St 04.led.2017 09:56:40, jplesnik napsal(a): Show quoted text
> # cat /proc/cpuinfo > processor : 0 > BogoMIPS : 100.00
The BogoMIPS value was added into arch64 Linux with: commit 92e788b749862ebe9920360513a718e5dd4da7a9 Author: Yang Shi <yang.shi@linaro.org> Date: Wed Nov 18 10:48:55 2015 -0800 arm64: restore bogomips information in /proc/cpuinfo Please note that the BogoMIPS value cannot represent a CPU frequency <http://lists.infradead.org/pipermail/linux-arm-kernel/2015-November/386301.html>. Maybe it would be better not report any frequency at all.
I'm moving this ticket to System-Info and let Tux deal with it.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.