use strict;
use warnings;
-use Test::More tests => 88;
+use Test::More tests => 92;
sub is_blhc {
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
';
';
-# configure
+# configure/make
is_blhc 'configure', '', 1,
'No compiler commands!
';
+is_blhc 'make', '', 1,
+ 'No compiler commands!
+';
+
+
# cc
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