summaryrefslogtreecommitdiff
path: root/scripts/t
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2018-09-18 23:34:59 +0200
committerGuillem Jover <guillem@debian.org>2018-09-18 23:43:37 +0200
commita7901786002cf4bd9f1dfbf3e4d844fc27478a8b (patch)
tree3919d596a620ee0be96cfb3eb4121822e3e4eace /scripts/t
parent5eec3d31ff0ad5a22ced343969dda99b9e2af442 (diff)
downloaddpkg-a7901786002cf4bd9f1dfbf3e4d844fc27478a8b.tar.gz
dpkg-parsechangelog: Add new --reverse option
This option will make the output be in reverse order.
Diffstat (limited to 'scripts/t')
-rw-r--r--scripts/t/Dpkg_Changelog.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/t/Dpkg_Changelog.t b/scripts/t/Dpkg_Changelog.t
index ed9f8a965..8aa1bfc45 100644
--- a/scripts/t/Dpkg_Changelog.t
+++ b/scripts/t/Dpkg_Changelog.t
@@ -16,7 +16,7 @@
use strict;
use warnings;
-use Test::More tests => 94;
+use Test::More tests => 96;
use Test::Dpkg qw(:paths);
use File::Basename;
@@ -81,6 +81,10 @@ foreach my $file ("$datadir/countme", "$datadir/shadow", "$datadir/fields",
count => 3,
versions => [ '2:2.0-1', '1:2.0~rc2-3', '1:2.0~rc2-2' ],
name => 'positive count');
+ check_options(%ref, range => { count => 3, reverse => 1 },
+ count => 3,
+ versions => [ '1:2.0~rc2-2', '1:2.0~rc2-3', '2:2.0-1' ],
+ name => 'positive reverse count');
check_options(%ref, range => { count => -3 },
count => 3,
versions => [