# Tests for blhc.
#
-# Copyright (C) 2012 Simon Ruderich
+# Copyright (C) 2012-2013 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
use strict;
use warnings;
-use Test::More tests => 202;
+use Test::More tests => 208;
sub is_blhc {
$usage;
is_blhc '', '--version', 0,
- 'blhc 0.03 Copyright (C) 2012 Simon Ruderich
+ 'blhc 0.04 Copyright (C) 2012-2013 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 'configure', '', 1,
$empty;
+is_blhc 'configure-check', '', 4,
+ 'NONVERBOSE BUILD: CC = gcc -std=gnu99 -std=gnu99 test.c
+';
+
is_blhc 'make', '', 1,
$empty;
';
+# architecture in older buildd logs
+
+is_blhc 'dpkg-buildpackage-architecture-old', '', 0,
+ '';
+
+
# ignore architecture
is_blhc ['arch-avr32', 'arch-i386', 'empty', 'arch-mipsel'],
';
is_blhc 'debian-hardening-wrapper', '', 16,
$debian_hardening_wrapper;
+is_blhc 'debian-hardening-wrapper-old-build-depends', '', 16,
+ $debian_hardening_wrapper;
is_blhc 'debian-hardening-wrapper-pbuilder', '', 16,
$debian_hardening_wrapper;