summaryrefslogtreecommitdiff
path: root/t
AgeCommit message (Collapse)AuthorFilesLines
2019-10-30test: Suppress new bogus cppcheck 1.89 false positivesGuillem Jover1-0/+13
Warned-by: cppcheck
2019-10-30test: Update stopwords for codespell 1.16.0Guillem Jover1-0/+1
2019-10-30test: Skip build directories from codespellGuillem Jover1-0/+2
These contain files that are not currently skept, and might contain spelling errors from external sources. Warned-by: codespell
2019-10-30test: Clarify cppcheck va_list_usedBeforeStarted suppressionGuillem Jover1-1/+1
This is actually due to our local va_copy() compatibility code, which cppcheck does not understand. Using the same code w/o the local macro does not emit the false positive.
2019-10-30test: Remove perlcritic Documentation::RequirePodLinksIncludeText suppressionGuillem Jover1-3/+0
This bogus test has been removed from upstream perlcritic, and now the code complains about an uninstalled check. Warned-by: perlcritic
2019-10-12build: Bump minimal Perl version to 5.24.1Guillem Jover1-1/+1
The Perl version in Debian stretch is 5.24.1, which is the release that will be oldstable once 1.20.x gets uploaded to Debian unstable.
2019-06-03doc: Fix typosGuillem Jover1-0/+13
Warned-by: codespell
2019-02-23dpkg: Simplify maintscript_set_exec_context()Guillem Jover1-4/+0
We do not really need to normalize the return code, which was confusing the cppcheck for which we required a supression.
2019-01-22test: Update cppcheck supressionsGuillem Jover1-5/+20
Supress false positives and intended code usage.
2019-01-22test: Add descriptions for the shellcheck exclude codesGuillem Jover1-5/+5
Having to refer to the documentation to know what these are about is annoying, inline a brief description.
2018-10-10test: Add new shellcheck author testGuillem Jover1-0/+70
2018-10-08libdpkg: Honor DPKG_PAGERGuillem Jover1-0/+1
This makes it possible to use a dpkg specific pager. Suggested-by: Craig Sanders <cas@taz.net.au> Ref: #909754
2018-10-08dpkg: Fix --force-not-rootGuillem Jover1-1/+1
Ignore EPERM for chown and chmod based syscalls. And give a more meaningful error message on chroot(). Closes: #614126
2018-09-26test: Change cppcheck test to cope with CPAN distribution pathsGuillem Jover1-1/+1
The paths are different in the CPAN distribution, so we need to use a glob to catch the file in both layouts.
2018-09-26test: Make po checks cope with missing po files in CPAN distributionGuillem Jover1-0/+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-08-30test: Add new codespell author testGuillem Jover2-0/+77
2018-08-30test: Delete fixup lines from i18nspector output instead of emptying themGuillem Jover1-2/+2
The previous regex was just turning the line into an empty one, but we count the length to check whether there was any output. In this particular case this did not trigger because we have a chomp, that would get rid of the last empty line, which happened to be fine as we currently only emit one such empty line per file. But this is not future-proof, so let's fix it before it bites us.
2018-08-30Dpkg::Control::Fields: Do not use & sigil for function callsGuillem Jover1-0/+1
Warned-by: perlcritic Fixes: Subroutines::ProhibitAmpersandSigils
2018-08-30Fix some typosGuillem Jover1-1/+1
Thanks-to: Niels Thykier <niels@thykier.net> (for typo in dpkg(1))
2018-08-01test: Add new cppcheck integration author testGuillem Jover2-0/+88
2018-07-24test: Add new po author testGuillem Jover1-0/+50
Use i18nspector (if available) to check the .po and .pot files.
2018-05-04Dpkg::Version: Fix bool overload behaviorGuillem Jover1-0/+1
The current bool overload has broken semantics, because it considers the version "0" to be false. The bool overload used to have sane semantics (equivalent to is_valid()) before commit 5b9f353b2940de751df47036608afbe71992d622, but there it got changed to return the stringified version if it was valid, or undef otherwise, to fix a problem within dpkg-shlibdeps, instead of properly fixing the local-only problem in the tool. This makes the overload hard to use, and broke existing callers from external projects. We will emit a warning until dpkg 1.20.x to notify of the semantic change in case there is code relying on the broken semantics. For fixed code the warning can then be quiesced with: no warnings qw(Dpkg::Version::semantic_change::overload::bool); Closes: #895004
2018-01-16test: Check POD in all perl scriptsGuillem Jover1-4/+2
We should check POD syntax in any perl script that contains it, not just within the Dpkg perl modules.
2017-09-24scripts/t: Avoid many function arguments in check_options()Guillem Jover1-0/+1
Fixes: Subroutines::ProhibitManyArgs Warned-by: perlcritic
2017-08-26t: Rename FIXME to BUGGuillem Jover1-8/+8
This is not something that we can easily fix, those are all upstream problems.
2017-07-04test: Add missing POD stopwordsGuillem Jover1-1/+3
Fixes: commit 2378fb62a7b0985aef451beb9ff856a4df5dd715
2017-05-20test: Use Module::Metadata instead of grepping for $VERSIONGuillem Jover1-2/+4
2017-05-20test: Add new module-version unit testGuillem Jover1-0/+73
This will check that the module $VERSION matches the newest entry in the CHANGES section if there is any POD present.
2017-05-20test: Disable perlcritic ValuesAndExpressions::ProhibitEscapedCharacterGuillem Jover1-0/+3
2017-05-20test: Enable perlcritic Documentation::RequirePodSectionsGuillem Jover2-3/+5
Declare the minimum required POD sections.
2017-05-20test: Enable perlcritic Miscellanea::ProhibitTiesGuillem Jover1-0/+1
2017-05-20Dpkg::Util: Remove and replace with core module List::UtilGuillem Jover2-4/+1
Our current minimal Perl version contains a new enough List::Util module implementing none and any, and several other functions.
2017-05-19doc: Bump minimal Perl version to 5.20.2Guillem Jover1-1/+1
The Perl version in Debian jessie is 5.20.2, which is the release that will be oldstable once 1.19.x gets uploaded to Debian unstable.
2017-01-26test: Disable perlcritic ValuesAndExpressions::RequireNumberSeparatorsGuillem Jover2-5/+3
This test produces false positives on long hex numbers, even when they have been separated with underscores.
2017-01-22Dpkg::Arch: Add new import tagsGuillem Jover1-0/+1
This makes using the module a bit easier.
2016-11-13t: Mark partially documented POD modules as TODOGuillem Jover1-5/+14
This makes sure we will not forget to get them out of the ignore list once they get documented.
2016-11-03scripts: Add support for .buildinfo filesGuillem Jover1-0/+2
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-30test: Ignore POD coverage for partially private modulesGuillem Jover1-1/+6
The Dpkg::Arch and Dpkg::Source::Package modules are partially private, and several of its functions are not yet documented as public. Ignore these two for now to avoid the expected failures.
2016-10-30test: Pass -q to grep command to suppress matched outputGuillem Jover1-1/+2
2016-10-30Dpkg::Substvars: Obsolete Source-Version substvarGuillem Jover1-0/+1
Emit an error when the source package uses this substvar.
2016-07-31t: Add POD coverage support for public perl modulesGuillem Jover1-0/+60
2016-07-03test: Add new synopsis unit testGuillem Jover1-0/+32
Make sure all SYNOPSIS sections have compilable code.
2016-07-03test: Add new minimum perl version unit testGuillem Jover1-0/+32
Verify that the perl version we want to restrict ourselves in the coding style is enforced through the test suite.
2016-07-03test: Refactor common unit test checks for needed thingsGuillem Jover5-46/+19
2016-07-03test: Add new pod-spell unit testGuillem Jover1-0/+96
2016-07-03test: Bump ValuesAndExpressions::RequireNumberSeparators minimum to 99999Guillem Jover1-0/+4
Up to 5 digits should be considered visually clear.
2016-02-15test: Add a unit test to compile perl code with warningsGuillem Jover2-2/+51
With «use warnings» some inermodule issues such as redefinitions of symbols are not catched, because that is too late. Define PERL in the unit test environment so that we can invoke the detected interpreter. And disable the now redundant syntax_ok() check from the strict.t unit test.
2015-09-17t: Separate perl-critic tests with blank lines to make them more readableGuillem Jover1-1/+40
2015-09-17t: Disable perl-critic RegularExpressions::ProhibitEnumeratedClassesGuillem Jover1-0/+3
We work primarily with ASCII, so we want to specify the exact characters to match.
2015-09-14perl: Split overlong regexes into multiline extended regexesGuillem Jover2-2/+6
This should make the regular expressions easier to read and understand, and allows to add comments describing specific parts. Addresses RegularExpressions::RequireExtendedFormatting. Warned-by: perlcritic