]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/tests.t
Also use buildd's "Architecture" header to detect architecture.
[blhc/blhc.git] / t / tests.t
index 62fef677c726afce55c3055fbd01dd36247d8409..cfe2f9dbb082724ddf068ca4f48f3b4564feaf81 100644 (file)
--- a/t/tests.t
+++ b/t/tests.t
@@ -19,7 +19,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 132;
+use Test::More tests => 136;
 
 
 sub is_blhc {
@@ -633,6 +633,25 @@ LDFLAGS missing (-pie -Wl,-z,relro): gcc -fPIE -o test test.o
 ';
 
 
+# ignore architecture
+
+is_blhc ['arch-avr32', 'arch-i386', 'empty', 'arch-mipsel'],
+        '--ignore-arch avr32 --ignore-arch mipsel',
+        9,
+        "checking './t/logs/arch-avr32'...\n"
+        . "ignoring architecture 'avr32'\n"
+        . "checking './t/logs/arch-i386'...\n"
+        . $arch_i386
+        . "checking './t/logs/empty'...\n"
+        . $empty
+        . "checking './t/logs/arch-mipsel'...\n"
+        . "ignoring architecture 'mipsel'\n"
+        ;
+
+is_blhc 'buildd-dpkg-dev', '--ignore-arch i386', 0,
+        "ignoring architecture 'i386'\n";
+
+
 # debian
 
 is_blhc 'debian', '', 8,