use strict;
use warnings;
-use Test::More tests => 102;
+use Test::More tests => 108;
sub is_blhc {
NONVERBOSE BUILD: [CC] src/test_c.o
NONVERBOSE BUILD: [LD] src/test.o
NONVERBOSE BUILD: CC modules/server/test.c
+NONVERBOSE BUILD: C++ test/test.o
+NONVERBOSE BUILD: C++ test.cpp
NONVERBOSE BUILD: Compiling test/test.cc to ../build/test/test.o
NONVERBOSE BUILD: Building shared library ../build/test/libtest.so.1.2.3
NONVERBOSE BUILD: Compiling test.cc to ../build/test/test.o
LDFLAGS missing (-Wl,-z,relro): gcc -o test test.o `dpkg-buildflags --get CFLAGS`
';
+is_blhc 'debian-cmake', '', 32,
+ 'INVALID CMAKE: 2.8.7-2
+';
+
my $debian_hardening_wrapper =
'HARDENING WRAPPER: no checks possible, aborting
';
'W-compiler-flags-hidden 1 (of 5) hidden
';
+is_blhc 'make', '--buildd', 1,
+ 'W-no-compiler-commands
+';
+
+is_blhc 'debian-cmake', '--buildd', 32,
+ 'W-invalid-cmake-used 2.8.7-2
+';
+
# multiple files