chiark / gitweb /
Test suite: stunt Parse.pm: add comment about %options
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Oct 2016 11:37:34 +0000 (12:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 10 Oct 2016 00:01:11 +0000 (01:01 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tstunt/Dpkg/Changelog/Parse.pm

index 677580bb048793e51d653398e40ae1247e268999..32be2ddf86e153ef4ca7a264ed990290788e9d66 100644 (file)
@@ -36,7 +36,22 @@ our @EXPORT = qw(changelog_parse);
 die +(join " ", %ENV)." ?" if $ENV{'DGIT_NO_TSTUNT_CLPARSE'};
 
 sub 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';
 
 
     $options{'file'} //= 'debian/changelog';