X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Ftests.t;h=555b5be3b27d15986c19e5439eb9622e7d78b720;hb=5d47f4a04c4a45b6cacca330725539822b99a276;hp=2e31fddc1fa49146bd66d092530463386accf278;hpb=d9bd7570d07a93026a3147971c8e34be6c1c6c86;p=blhc%2Fblhc.git diff --git a/t/tests.t b/t/tests.t index 2e31fdd..555b5be 100644 --- a/t/tests.t +++ b/t/tests.t @@ -19,7 +19,7 @@ use strict; use warnings; -use Test::More tests => 84; +use Test::More tests => 88; sub is_blhc { @@ -533,11 +533,23 @@ LDFLAGS missing (-Wl,-z,relro): gcc -Wl,-z,now -o test test.o is_blhc 'debian', '', 8, 'CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -c `dpkg-buildflags --get CFLAGS` test.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): g++ -c `dpkg-buildflags --get CXXFLAGS` test.cc +CFLAGS missing (-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -c `dpkg-buildflags --get LDFLAGS` test.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -c `dpkg-buildflags --get LDFLAGS` test.c +LDFLAGS missing (-Wl,-z,relro): gcc -o test test.o `dpkg-buildflags --get CFLAGS` +'; + +is_blhc 'debian-hardening-wrapper', '', 16, + 'HARDENING WRAPPER: no checks possible, aborting '; # buildd support +is_blhc 'buildd-package-details', '--buildd', 0, + ''; + is_blhc 'buildd-dpkg-dev', '--buildd', 8, 'CFLAGS missing (-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -g -O2 -c test-a.c CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -O2 -c test-a.c