# Tests for blhc.
#
-# Copyright (C) 2012-2015 Simon Ruderich
+# Copyright (C) 2012-2016 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
# Usage, invalid arguments.
-my $usage =
+use Pod::Usage;
+my $usage = ( $Pod::Usage::VERSION < 1.65 ?
'Usage:
blhc [*options*] *<dpkg-buildpackage build log file>..*
-';
+'
+ :
+ 'Usage:
+ blhc [options] <dpkg-buildpackage build log file>..
+
+');
is_blhc '', '--invalid', 2,
"Unknown option: invalid\n"
. $usage;
$usage;
is_blhc '', '--version', 0,
- 'blhc 0.05 Copyright (C) 2012-2015 Simon Ruderich
+ 'blhc 0.05 Copyright (C) 2012-2016 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
is_blhc '', '--help', 1,
qr/^Usage:
- blhc \[\*options\*\] \*<dpkg-buildpackage build log file>\.\.\*
+ blhc \[\*?options\*?\] \*?<dpkg-buildpackage build log file>\.\.\*?
Options:
/s;
# Invalid option.
is_blhc 'ignore-flag', '--ignore-arch-flag -g', 2,
- 'Value "-g" invalid for option ignore-arch-flag ("arch:flag" expected)
-Usage:
- blhc [*options*] *<dpkg-buildpackage build log file>..*
-
-';
+ 'Value "-g" invalid for option ignore-arch-flag ("arch:flag" expected)'
+ . "\n$usage";
is_blhc 'ignore-flag', '--ignore-arch-flag -g:', 2,
- 'Value "-g:" invalid for option ignore-arch-flag ("arch:flag" expected)
-Usage:
- blhc [*options*] *<dpkg-buildpackage build log file>..*
-
-';
+ 'Value "-g:" invalid for option ignore-arch-flag ("arch:flag" expected)'
+ . "\n$usage";
is_blhc 'ignore-flag', '--ignore-arch-flag :amd64', 2,
- 'Value ":amd64" invalid for option ignore-arch-flag ("arch:flag" expected)
-Usage:
- blhc [*options*] *<dpkg-buildpackage build log file>..*
-
-';
+ 'Value ":amd64" invalid for option ignore-arch-flag ("arch:flag" expected)'
+ . "\n$usage";
# Wrong architecture.
is_blhc 'ignore-flag', '--ignore-arch-flag amd64:-g', 8,
# Invalid option.
is_blhc 'ignore-line', '--ignore-arch-line .+', 2,
- 'Value ".+" invalid for option ignore-arch-line ("arch:line" expected)
-Usage:
- blhc [*options*] *<dpkg-buildpackage build log file>..*
-
-';
+ 'Value ".+" invalid for option ignore-arch-line ("arch:line" expected)'
+ . "\n$usage";
is_blhc 'ignore-line', '--ignore-arch-line .+:', 2,
- 'Value ".+:" invalid for option ignore-arch-line ("arch:line" expected)
-Usage:
- blhc [*options*] *<dpkg-buildpackage build log file>..*
-
-';
+ 'Value ".+:" invalid for option ignore-arch-line ("arch:line" expected)'
+ . "\n$usage";
is_blhc 'ignore-line', '--ignore-arch-line :amd64', 2,
- 'Value ":amd64" invalid for option ignore-arch-line ("arch:line" expected)
-Usage:
- blhc [*options*] *<dpkg-buildpackage build log file>..*
-
-';
+ 'Value ":amd64" invalid for option ignore-arch-line ("arch:line" expected)'
+ . "\n$usage";
# Wrong architecture.
is_blhc 'ignore-line', '--ignore-arch-line "amd64:.+"', 8,
CXXFLAGS missing (-Wformat): cd /tmp/test/src && /usr/bin/c++ -g -O2 -fstack-protector-strong -Wformat-security -Werror=format-security -o CMakeFiles/test-verbose.dir/verbose.cpp.o -c -D_FORTIFY_SOURCE=2 /tmp/test/src/test-verbose/verbose.cpp
CFLAGS missing (-Werror=format-security): cd /tmp/test/src && /usr/bin/gcc -g -O2 -fstack-protector-strong -Wformat -Wformat-security -o CMakeFiles/test-verbose-c.dir/verbose-c.c.o -c -D_FORTIFY_SOURCE=2 /tmp/test/src/test-verbose-c/verbose-c.c
NONVERBOSE BUILD: Compiling test.c \ gcc test.c
+NONVERBOSE BUILD: [ 3%] Building CXX object scribus/text/CMakeFiles/scribus_text_lib.dir/frect.cpp.o
';