Description: Mark tests as TODO These tests are skipped as "not on raspberry" if /proc/cpuinfo doesn't contain a Revision field. On the Debian armhf buildd, the field exists, still the machine is no Raspberry Pi, so the actual tests later fail. Mark them as TODO to allow failure but still run them to see what happens on a real Raspi. Origin: vendor Forwarded: not-needed Author: gregor herrmann Last-Update: 2024-03-02 --- a/t/001-basic.t +++ b/t/001-basic.t @@ -17,6 +17,9 @@ diag('Basic tests are running'); +TODO: { + local $TODO = 'Not each CPU with a Revision is a Raspberry Pi'; + ok( HiPi::is_raspberry_pi(), 'HiPi says Raspberry Pi' ); my $pi = HiPi::RaspberryPi->new(); ok( $pi->is_raspberry(), 'Pi says Raspberry Pi' ); @@ -25,6 +28,8 @@ ok( $pi->hardware =~ /\ABCM2835\Z|\ARP1\Z/, 'hardware check as expected' ); ok( $pi->processor =~ /^BCM(2835|2836|2837|2711|2712)/, 'processor check as expected' ); +} # END OF TODO + } # END OF SKIP MAIN -1; \ No newline at end of file +1;