File: arm-but-no-raspi.patch

package info (click to toggle)
libhipi-perl 0.93-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 20,048 kB
  • sloc: perl: 471,917; ansic: 22; makefile: 10
file content (34 lines) | stat: -rw-r--r-- 1,037 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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 <gregoa@debian.org>
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;