X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Ftests.t;h=2314abf5f812635305f25821c53e06c3b0198d85;hb=5668edb1e7b4210adc381c847487861765486cf9;hp=b1c1e86fb9887336eabc616910dd0b311d81a906;hpb=5729a02f54e5cbc1ff346f457a9e56effcdee96d;p=blhc%2Fblhc.git diff --git a/t/tests.t b/t/tests.t index b1c1e86..2314abf 100644 --- a/t/tests.t +++ b/t/tests.t @@ -19,7 +19,7 @@ use strict; use warnings; -use Test::More tests => 246; +use Test::More tests => 248; sub is_blhc { @@ -885,6 +885,12 @@ NONVERBOSE BUILD: /bin/bash ../libtool --silent --tag=CC --mode=compile gcc -D NONVERBOSE BUILD: /bin/bash ../libtool --silent --tag=CC --mode=link gcc -Wall -Wextra -Wconversion -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIE -pie -Wl,-z,relro -Wl,-z,now -o libcoloredstderr.la -rpath /usr/local/lib coloredstderr.lo -ldl '; +# cargo/rust + +is_blhc 'cargo', '', 1, + $empty; + + # different architectures @@ -899,11 +905,8 @@ LDFLAGS missing (-pie): gcc -fPIE -Wl,-z,relro -Wl,-z,now -o test test.o is_blhc 'arch-i386', '', 8, $arch_i386; -my $arch_ia64 = - 'CFLAGS missing (-fPIE): gcc -D_FORTIFY_SOURCE=2 -g -O2 -Wformat -Wformat-security -Werror=format-security -Wall -c test.c -LDFLAGS missing (-pie): gcc -fPIE -o test test.o -'; -is_blhc 'arch-ia64', '', 8, +my $arch_ia64 = ''; +is_blhc 'arch-ia64', '', 0, $arch_ia64; is_blhc 'arch-ia64', '--arch i386', 8,