]> ruderich.org/simon Gitweb - blhc/blhc.git/blobdiff - t/tests.t
Fix --ignore-flag with -fPIE.
[blhc/blhc.git] / t / tests.t
index 21fca072a3f42bb5eda4262edd3288721753402f..3ef7cd1d8a85b86021afee7320faf634252afcfd 100644 (file)
--- a/t/tests.t
+++ b/t/tests.t
@@ -19,7 +19,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 136;
+use Test::More tests => 140;
 
 
 sub is_blhc {
@@ -56,6 +56,23 @@ is_blhc '', '--invalid', 2,
 is_blhc '', '', 2,
         $usage;
 
+is_blhc '', '--version', 0,
+        'blhc 0.02  Copyright (C) 2012  Simon Ruderich
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program.  If not, see <http://www.gnu.org/licenses/>.
+';
+
 
 # No compiler commands found.
 
@@ -80,6 +97,8 @@ is_blhc 'ignore-flag', '--ignore-flag -g', 8,
 is_blhc 'ignore-flag', '--ignore-flag -g --ignore-flag -O2', 0,
         '';
 
+is_blhc 'ignore-flag-ldflags', '--ignore-flag -fPIE', 0,
+        '';
 
 # Ignore certain lines.
 
@@ -688,7 +707,7 @@ is_blhc 'false-positives', '', 1,
 # buildd support
 
 is_blhc 'empty', '--buildd', 1,
-        'W-no-compiler-commands
+        'I-no-compiler-commands
 ';
 
 is_blhc 'buildd-package-details', '--buildd', 0,
@@ -715,11 +734,11 @@ is_blhc 'buildd-verbose-build', '--buildd', 4,
 ';
 
 is_blhc 'make', '--buildd', 1,
-        'W-no-compiler-commands
+        'I-no-compiler-commands
 ';
 
 is_blhc 'debian-cmake', '--buildd', 32,
-        'W-invalid-cmake-used 2.8.7-1
+        'I-invalid-cmake-used 2.8.7-1
 ';