]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Print file name when multiple files are checked.
authorSimon Ruderich <simon@ruderich.org>
Fri, 6 Apr 2012 16:42:15 +0000 (18:42 +0200)
committerSimon Ruderich <simon@ruderich.org>
Fri, 6 Apr 2012 16:42:15 +0000 (18:42 +0200)
bin/blhc
t/tests.t

index eb803248d784514aff2143a3c4835d475daa25db..d6fb8511e47cb5abaccd18f2ad63ad509db60bea 100755 (executable)
--- 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.
index 0b98fe3648a00e9be9a70b02bbc605d6308642be..3108c19c925f3bbaf0a42e11494e9e981ab6bb06 100644 (file)
--- 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
         ;