X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tests%2Ftstunt%2FDpkg%2FChangelog%2FParse.pm;fp=tests%2Ftstunt%2FDpkg%2FChangelog%2FParse.pm;h=32be2ddf86e153ef4ca7a264ed990290788e9d66;hb=da2456e64add31d0ad28e2905b7a55e0ecb7000d;hp=677580bb048793e51d653398e40ae1247e268999;hpb=55139a910de527575606d9efa0defdbf28c96c65;p=dgit.git diff --git a/tests/tstunt/Dpkg/Changelog/Parse.pm b/tests/tstunt/Dpkg/Changelog/Parse.pm index 677580bb..32be2ddf 100644 --- a/tests/tstunt/Dpkg/Changelog/Parse.pm +++ b/tests/tstunt/Dpkg/Changelog/Parse.pm @@ -36,7 +36,22 @@ our @EXPORT = qw(changelog_parse); die +(join " ", %ENV)." ?" if $ENV{'DGIT_NO_TSTUNT_CLPARSE'}; sub changelog_parse { - my (%options) = @_; # ignored + my (%options) = @_; # largely ignored + +#use Data::Dumper; +#print STDERR "CLOG PARSE ", Dumper(\%options); +# +# We can't do this because lots of things use `since' which +# we don't implement, and it's the test cases that arrange that +# the since value happens to be such that we are to print one output. +# +# foreach my $k (keys %options) { +# my $v = $options{$k}; +# if ($k eq 'file') { } +# elsif ($k eq 'offset') { die "$v ?" unless $v <= 1; } # wtf, 1==0 ? +# elsif ($k eq 'count') { die "$v ?" unless $v == 1; } +# else { die "$k ?"; } +# } $options{'file'} //= 'debian/changelog';