From: Simon Ruderich Date: Fri, 6 Apr 2012 16:42:15 +0000 (+0200) Subject: Print file name when multiple files are checked. X-Git-Tag: 0.01~36 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=1c5b2d2454bc2bf82ba6bbcc9ecd8601b162f992 Print file name when multiple files are checked. --- diff --git a/bin/blhc b/bin/blhc index eb80324..d6fb851 100755 --- a/bin/blhc +++ b/bin/blhc @@ -473,6 +473,8 @@ if ($option_all) { my $exit = 0; FILE: foreach my $file (@ARGV) { + print "checking '$file'...\n" if scalar @ARGV > 1; + open my $fh, '<', $file or die "$!: $file"; # Architecture of this file. diff --git a/t/tests.t b/t/tests.t index 0b98fe3..3108c19 100644 --- a/t/tests.t +++ b/t/tests.t @@ -613,17 +613,32 @@ is_blhc 'debian-cmake', '--buildd', 32, # multiple files is_blhc ['good', 'good-pie', 'good-bindnow', 'good-all', 'good-multiline', 'good-library'], '', 0, - ''; + "checking './t/logs/good'... +checking './t/logs/good-pie'... +checking './t/logs/good-bindnow'... +checking './t/logs/good-all'... +checking './t/logs/good-multiline'... +checking './t/logs/good-library'... +"; is_blhc ['good-all', 'good-library'], '--all', 0, - ''; + "checking './t/logs/good-all'... +checking './t/logs/good-library'... +"; is_blhc ['arch-i386', 'arch-ia64'], '', 8, - $arch_i386 . $arch_ia64; + "checking './t/logs/arch-i386'...\n" + . $arch_i386 + . "checking './t/logs/arch-ia64'...\n" + . $arch_ia64; # No exit when multiple files are specified. is_blhc ['bad-ldflags', 'empty', 'arch-avr32', 'debian-hardening-wrapper'], '', 25, - $bad_ldflags + "checking './t/logs/bad-ldflags'...\n" + . $bad_ldflags + . "checking './t/logs/empty'...\n" . $empty + . "checking './t/logs/arch-avr32'...\n" . $arch_avr32 + . "checking './t/logs/debian-hardening-wrapper'...\n" . $debian_hardening_wrapper ;