From: Simon Ruderich Date: Tue, 27 Mar 2012 17:08:48 +0000 (+0200) Subject: Use tag W-no-compiler-commands in buildd mode. X-Git-Tag: 0.01~45 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=bd14bca33d2d8a8b2b296a62f2e13292a3f58068 Use tag W-no-compiler-commands in buildd mode. --- diff --git a/bin/blhc b/bin/blhc index 04b7125..544b32c 100755 --- a/bin/blhc +++ b/bin/blhc @@ -602,7 +602,11 @@ FILE: foreach my $file (@ARGV) { close $fh; if (scalar @input == 0) { - print "No compiler commands!\n"; + if (not $option_buildd) { + print "No compiler commands!\n"; + } else { + print "W-no-compiler-commands\n"; + } $exit |= 1; next FILE; } diff --git a/t/tests.t b/t/tests.t index 9bdab49..bb8471b 100644 --- a/t/tests.t +++ b/t/tests.t @@ -19,7 +19,7 @@ use strict; use warnings; -use Test::More tests => 100; +use Test::More tests => 102; sub is_blhc { @@ -573,6 +573,10 @@ is_blhc 'debian-hardening-wrapper', '', 16, # buildd support +is_blhc 'empty', '--buildd', 1, + 'W-no-compiler-commands +'; + is_blhc 'buildd-package-details', '--buildd', 0, '';