X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=blobdiff_plain;f=t%2Ftests.t;h=3c7e5b8af91a09851b5bc19f818a56ff5fcba4b9;hp=0cd73f4ec56ff88943c7575b5e05798226bc2dff;hb=cdecc177aceddaba33f6414081f9f9137933a846;hpb=b85a3fb508fc2f9d98d44583cf31cbf5ac63a382 diff --git a/t/tests.t b/t/tests.t index 0cd73f4..3c7e5b8 100644 --- a/t/tests.t +++ b/t/tests.t @@ -19,7 +19,7 @@ use strict; use warnings; -use Test::More tests => 80; +use Test::More tests => 84; sub is_blhc { @@ -50,6 +50,7 @@ Usage: --bindnow force +bindbow check --all force +all (+pie, +bindnow) check --arch set architecture (autodetected) + --buildd parser mode for buildds '; @@ -377,13 +378,6 @@ LDFLAGS missing (-fPIE -pie -Wl,-z,now): gcc-4.6 -Wl,-z,defs test-a.o test-b.o t '; -# debian - -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 -'; - - # c++ is_blhc 'c++', '--pie --bindnow', 8, @@ -473,3 +467,36 @@ is_blhc 'arch-mipsel', '', 8, 'CFLAGS missing (-Werror=format-security): gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Wall -c test.c LDFLAGS missing (-Wl,-z,relro): gcc -Wl,-z,now -o test test.o '; + + +# debian + +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 +'; + + +# buildd support + +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 +CFLAGS missing (-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -g -O2 -c test-b.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -O2 -c test-b.c +CFLAGS missing (-fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -g -O2 -c test-c.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -O2 -c test-c.c +LDFLAGS missing (-Wl,-z,relro): gcc -o test test-a.o test-b.o test-c.o -ltest +CFLAGS missing (-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -g -c test-a.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -c test-a.c +CFLAGS missing (-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -g -c test-b.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -c test-b.c +CFLAGS missing (-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security): gcc -g -c test-c.c +CPPFLAGS missing (-D_FORTIFY_SOURCE=2): gcc -g -c test-c.c +LDFLAGS missing (-Wl,-z,relro): gcc -o test test-a.o test-b.o test-c.o -ltest +'; + +is_blhc 'buildd-dpkg-dev-old', '--buildd', 8, + 'CFLAGS missing (-O2): gcc -g -c test-a.c +CFLAGS missing (-O2): gcc -g -c test-b.c +CFLAGS missing (-O2): gcc -g -c test-c.c +';