summaryrefslogtreecommitdiff
path: root/scripts/t/Dpkg_Changelog.t
AgeCommit message (Collapse)AuthorFilesLines
2019-01-15Dpkg::File: Make file_slurp() also accept pathnames in addition to filehandlesGuillem Jover1-3/+1
This makes several call sites more clear, as we move the logic inside the function.
2019-01-15Dpkg::Changelog::Debian: Preserve modelines at EOFGuillem Jover1-2/+6
We should keep these and consider them as pseudo-EOF markers, and stop processing once seen. [lamby@debian.org: - Initial test cases for dpkg-mergechangelogs functional tests. ] Closes: #916056
2018-09-18dpkg-parsechangelog: Add new --reverse optionGuillem Jover1-1/+5
This option will make the output be in reverse order.
2018-01-16test: Infer automatically the unit test data directoryGuillem Jover1-1/+1
We can easily know the name of the calling unit test, and can thus infer the pathname for the data directory, instead of having to duplicate the name, and potentially ending with it being out of sync.
2017-09-24scripts/t: Avoid many function arguments in check_options()Guillem Jover1-97/+137
Fixes: Subroutines::ProhibitManyArgs Warned-by: perlcritic
2017-05-06doc: Spelling fixesJosh Soref1-4/+4
Signed-off-by: Guillem Jover <guillem@debian.org>
2017-01-25test: Refactor unit test data path into test_get_data_path()Guillem Jover1-2/+2
2016-11-05Dpkg::Changelog: Cope gracefully with a missing trailer timestampGuillem Jover1-2/+3
The get_timepiece methods might return an undef value if there was no timestamp in the trailer. Do not call the Time::Piece epoch method in that case, as that causes a perl error. Regression introduced in commit ea22158eb8b0dcaf42b0cdacd5b4560764f353c8. Closes: #843248 Based-on-patch-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
2016-07-03Dpkg::Changelog: Add new Timestamp field to outputGuillem Jover1-0/+4
This field contains the date of the entry in seconds since the epoch. To make it easier to retrieve the date in a format that is easier to handle.
2016-07-03Dpkg::Changelog: Add new format_range() methodGuillem Jover1-7/+9
Deprecate dpkg() and rfc822() methods by this new method, which has a more clear name and generic interface.
2015-07-29Dpkg::Changelog::Entry::Debian: Use Time::Piece instead of Date::ParseGuillem Jover1-2/+10
The new module is in the perl core distribution, which reduces the build and run-time dependencies, helping with architecture bootstrapping. Prompted-by: Helmut Grohne <helmut@subdivi.de>
2015-01-28test: Move use strict and warnings as the first directivesGuillem Jover1-0/+1
2014-05-23Dpkg::Control::HashCore: Do not emit trailing space on field empty first lineGuillem Jover1-4/+4
This spurious space is unnecessary and takes a non-insignificant amount of disk space on archive index files for example. Update dpkg-dev Breaks on devscripts to version << 2.14.4, as previous versions of debchange expect a trailing space from dpkg-parsechangelog output. Closes: #749044 Based-on-patch-by: Johannes Schauer <j.schauer@email.de>
2014-05-17test: Add labels to Test::More testsGuillem Jover1-2/+2
Fixes TestingAndDebugging::RequireTestLabels. Warned-by: perlcritic
2014-04-21test: Remove sequence number prefixes from test case filenamesGuillem Jover1-0/+321
This stops the madness of having to invent sequence numbers to be able to order the test suite run. Instead we now honour the order of the arguments passed to the runner.