diff options
author | Guillem Jover <guillem@debian.org> | 2016-06-16 20:22:24 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2016-07-03 21:02:24 +0200 |
commit | 8a74ef70c07aa4d3abadda13f259322145c12e53 (patch) | |
tree | c1867dbe2eb9c88e6f02593e67b25bc1e9571949 /t | |
parent | 96ffab9abd1eba496dc4fc8a679977f4339c0c9c (diff) | |
download | dpkg-8a74ef70c07aa4d3abadda13f259322145c12e53.tar.gz |
test: Add new synopsis unit test
Make sure all SYNOPSIS sections have compilable code.
Diffstat (limited to 't')
-rw-r--r-- | t/synopsis.t | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/t/synopsis.t b/t/synopsis.t new file mode 100644 index 000000000..99835b602 --- /dev/null +++ b/t/synopsis.t @@ -0,0 +1,32 @@ +#!/usr/bin/perl +# +# 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 2 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 <https://www.gnu.org/licenses/>. + +use strict; +use warnings; + +use Test::More; +use Test::Dpkg qw(:needs); + +test_needs_author(); +test_needs_module('Test::Synopsis'); +test_needs_srcdir_switch(); + +my @files = Test::Dpkg::all_perl_files(); + +plan tests => scalar @files; + +for my $file (@files) { + synopsis_ok($file); +} |