]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/tests.t
Fix --arch, missing '=s' in GetOptions().
[blhc/blhc.git] / t / tests.t
index 1e289311d26d14de394664590204c2ede8866f4a..6b23f06d74f586275aebab9c268343d9b6bb44d6 100644 (file)
--- a/t/tests.t
+++ b/t/tests.t
@@ -19,7 +19,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 88;
+use Test::More tests => 92;
 
 
 sub is_blhc {
@@ -42,14 +42,14 @@ is_blhc 'empty', '--invalid', 2,
 Usage:
     blhc [options] <dpkg-buildpackage build log file>
 
-        --help                  available options
-        --version               version number and license
-        --pie                   force +pie check
-        --bindnow               force +bindbow check
         --all                   force +all (+pie, +bindnow) check
         --arch                  set architecture (autodetected)
+        --bindnow               force +bindbow check
         --buildd                parser mode for buildds
         --color                 use colored output
+        --pie                   force +pie check
+        --help                  available options
+        --version               version number and license
 
 ';
 
@@ -396,12 +396,17 @@ CFLAGS missing (-Werror=format-security): cd /tmp/test/src && /usr/bin/gcc -g -O
 ';
 
 
-# configure
+# configure/make
 
 is_blhc 'configure', '', 1,
         'No compiler commands!
 ';
 
+is_blhc 'make', '', 1,
+        'No compiler commands!
+';
+
+
 
 # cc
 
@@ -530,6 +535,13 @@ is_blhc 'arch-mipsel', '', 8,
 LDFLAGS missing (-Wl,-z,relro): gcc -Wl,-z,now -o test test.o
 ';
 
+is_blhc 'arch-ia64', '--arch i386', 8,
+        'CFLAGS missing (-fstack-protector --param=ssp-buffer-size=4): gcc -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -Wformat -Wformat-security -Werror=format-security -Wall -c test.c
+LDFLAGS missing (-Wl,-z,relro): gcc -fPIE -pie -o test test.o
+CFLAGS missing (-fPIE -fstack-protector --param=ssp-buffer-size=4): gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c
+LDFLAGS missing (-pie -Wl,-z,relro): gcc -fPIE -o test test.o
+';
+
 
 # debian