summaryrefslogtreecommitdiff
path: root/scripts/Test
AgeCommit message (Collapse)AuthorFilesLines
2018-09-26test: Make po checks cope with missing po files in CPAN distributionGuillem Jover1-1/+1
We do not distribute the PO files yet for CPAN, so the checks should not fail when they are missing, even when testing with AUTHOR_TESTING=1.
2018-07-24test: Add new po author testGuillem Jover1-0/+26
Use i18nspector (if available) to check the .po and .pot files.
2018-05-03build: Add CPAN distribution machineryGuillem Jover1-3/+17
Add a new dist-cpan target that takes care of preparing a perl distribution to be uploaded to CPAN. Only the modules are shipped, some of which do require dpkg tools being installed though. Closes: #821177
2018-01-16test: Infer automatically the unit test temp directoryGuillem Jover1-0/+13
Add new test_get_temp_path() function, and replace all hardcoded settings of the temporary directory and its creation.
2018-01-16test: Infer automatically the unit test data directoryGuillem Jover1-2/+16
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.
2018-01-16test: Consider *.PL also to be perl filesGuillem Jover1-1/+1
2017-05-20Test::Dpkg: Add new all_perl_modules functionGuillem Jover1-1/+9
2017-01-25test: Refactor unit test data path into test_get_data_path()Guillem Jover1-0/+14
2016-11-16dpkg-genbuildinfo: Use deterministic .buildinfo filenamesGuillem Jover1-18/+0
Using undeterministic filenames based on the buildinfo-id produces ugly looking filenames, which get left behind when rebuilding the same source multiple times as they vary by date. There's really no great point in using unique filenames as they will end up with different contents depending on the builder.
2016-11-05Test::Dpkg: Use x modifier on a long regexGuillem Jover1-1/+18
Addresses RegularExpressions::RequireExtendedFormatting. Warned-by: perlcritic
2016-11-03scripts: Add support for .buildinfo filesGuillem Jover1-0/+1
The .buildinfo files are a new type of control files, similar to the .changes files, meant to describe the environment of a build and its artifacts. They are meant to be added to the Debian archive to allow independent parties to reproduce a build and verify the result. Specifications for .buildinfo are available at: <https://wiki.debian.org/ReproducibleBuilds/BuildinfoSpecification> This patch adds support for .buildinfo files in Dpkg::Control, adds new .buildinfo fields to Dpkg::Control::Fields, a new builtin-system-build-paths Dpkg::Vendor hook, and adds a new script named dpkg-genbuildinfo, that will now be called by dpkg-buildpackage before generating the .changes file. [ntyni@debian.org: small changes. ] Closes: #138409 Based-on-patch-by: Jérémy Bobbio <lunar@debian.org> Signed-off-by: Guillem Jover <guillem@debian.org>
2016-10-30scripts/t: Add dpkg-source functional testsGuillem Jover1-0/+18
2016-07-31Test::Dpkg: Refactor perl modules directory list into a new functionGuillem Jover1-1/+7
2016-07-03test: Accept perl's Lancaster Consensus AUTHOR_TESTING variableGuillem Jover1-1/+1
This is the variable perl developers expect when running author or developer tests, honour it to make people's life easier.
2016-07-03test: Refactor common unit test checks for needed thingsGuillem Jover1-0/+57
2015-03-30perl: Rework use and exporter declarationsGuillem Jover1-1/+3
Place 'use' strict and warnings first, then Exporter 'our' declarations, then Test module imports, then system module imports, then Dpkg module imports, then 'use' parent and overload pragmas, separated by a blank line for each block. Split each exported symbol declaration into its own line to ease modifications.
2015-01-28test: Add new common Test::Dpkg moduleGuillem Jover1-0/+39
This will centralize common testsuite functions.