X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Ftests.t;h=6b23f06d74f586275aebab9c268343d9b6bb44d6;hb=ac8118289ece66a515f2602928242d9179401fbb;hp=9d0014fced0a3a0c685718b97ce270f17a0e9bab;hpb=516e39a71f9a8f6e0d01fd13c40e4db0557de8df;p=blhc%2Fblhc.git diff --git a/t/tests.t b/t/tests.t index 9d0014f..6b23f06 100644 --- 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 { @@ -40,18 +40,16 @@ sub is_blhc { is_blhc 'empty', '--invalid', 2, 'Unknown option: invalid Usage: - blhc [-h -? --help] + blhc [options] - blhc [--pie] [--bindnow] [--all] - - --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 '; @@ -398,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 @@ -532,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