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