summaryrefslogtreecommitdiff
path: root/scripts/t
AgeCommit message (Collapse)AuthorFilesLines
2016-02-15Add MIPS R6 architectures to arch tablesYunQiang Su1-1/+1
MIPS R6 is a new release of MIPS32 and MIPS64. R6 is not fully compatible with R5-, as it adds and *removes* some instructions, and adds emulation of the removed instructions in the kernel, so old binaries can still run on new R6 CPUs, but at a significant performance cost. Closes: #807340 Signed-off-by: Guillem Jover <guillem@debian.org>
2016-02-15Dpkg::BuildEnv: Rename to Dpkg::Build::EnvGuillem Jover2-50/+50
2016-02-15Dpkg::Build::Types: Add new moduleGuillem Jover1-0/+43
2015-12-25Add NIOS2 support to cputableMarek Vasut1-1/+1
NIOS2 is a little endian soft-core by Altera. Signed-off-by: Guillem Jover <guillem@debian.org>
2015-12-19scripts/t: Improve test coverageGuillem Jover10-20/+183
2015-09-17t: Filter out any environment variable starting with DEB_ in mk.tGuillem Jover1-1/+1
These might affect the test results, and make them fail.
2015-08-06scripts/t: Get the reference build flags from dpkg-buildflags.plGuillem Jover2-9/+13
The build flags might change depending on the architecture, so instead of hardcoding them, retrieve them from the source's tree dpkg-buildflags.pl. Closes: #794694
2015-08-06scripts/t: Generalize get_arch_vars() into cmd_get_vars()Guillem Jover1-10/+9
2015-08-04scripts/t: Delete DEB_VENDOR from the environment to get reliable resultsGuillem Jover1-0/+3
2015-08-04scripts/t: Add test cases for the makefile snippetsGuillem Jover6-0/+139
2015-08-03Dpkg::Shlibs::Objdump: Support spaces in symbol namesGuillem Jover6-1/+231
The ELF spec does not disallow symbols with embedded spaces, so we should really be supporting those. This is required by Go shared libraries. Closes: #785344 Based-on-patch-by: Michael Hudson-Doyle <michael.hudson@canonical.com> Signed-off-by: Guillem Jover <guillem@debian.org>
2015-08-03Dpkg::Deps: Make the dependency comparison deepGuillem Jover1-2/+2
We have to check the whole dependency tree, and not only compare the first alternative from a Dpkg::Deps::Multiple. This allows sorting them in a reproducible way. Closes: #792491 Based-on-patch-by: Chris Lamb <lamby@debian.org> Signed-off-by: Guillem Jover <guillem@debian.org>
2015-07-29Dpkg::Dist::Files: Allow colons (:) in added filenamesGuillem Jover1-16/+26
Regression introduced in commit ab15fd24dd1a8207ab1463410338f24283989f7c. Packages can contain colons in their filenames if the upstream version contains colons. Reported-by: Jakub Wilk <jwilk@debian.org>
2015-07-29Dpkg::Control::HashCore: Remove trailing space before handling dot-separatorsGuillem Jover2-0/+3
Regression introduced in commit aea291e3db1ac0414dcf005a0a607e78bdd77a5e. Any spaces after the blank line dot-separator should be stripped before handling the dot-separator, otherwise we get duplicated dots in field contents. Closes: #789580 Stable-Candidate: 1.16.x 1.17.x
2015-07-29Dpkg::Changelog::Entry::Debian: Use Time::Piece instead of Date::ParseGuillem Jover2-2/+27
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-05-18Dpkg::Shlibs: Fix add_library_dir to initialize the library paths if neededGuillem Jover1-2/+13
We need to initialize the paths, otherwise a subsequent initialization will discard any paths added with this function. Regression introduced in commit 96e0d5d129fd963b3ef254580985c54bb717b5af.
2015-05-18scripts/t: Remove unused use Data::DumperGuillem Jover1-2/+0
2015-05-18scripts/t: Swap is_deeply() got and expected argumentsGuillem Jover1-3/+3
2015-05-18Dpkg::Dist::Files: Allow ~ in added filenamesGuillem Jover1-1/+28
When we are constructing a .changes file we add the source artifacts to the distribution manually, before loading the distribution list from debian/files. We should allow ~ in the filename as that's a valid character in a version number. Regression introduced in commit ab15fd24dd1a8207ab1463410338f24283989f7c. Reported-by: Niels Thykier <niels@thykier.net>
2015-05-18scripts/t: Reduce timeout from 5 to 1 in test caseGuillem Jover1-1/+1
The invoked sleep is 10 seconds, so reducing the timeout to 1 second should be safe, as this is all time bounded. This also speeds up the test suite.
2015-05-18scripts/t: Do not use a timeout when testing cat I/OGuillem Jover1-3/+2
While a 5 seconds timeout should be usually safe, it pretty much depends on the system being fast enough, and not being under any other load. This also ties unrelated checks together, and unnecessarily slows down the test suite.
2015-05-18Dpkg::Substvars: Add new filter() methodGuillem Jover2-1/+42
2015-05-18Dpkg::Dist::Files: Add new filter() methodGuillem Jover1-1/+32
2015-05-18scripts/t: Add test cases for Dpkg::ChecksumsGuillem Jover4-2/+99
2015-05-18scripts/t: Remove note that Dpkg_Getopt.t needs actual test casesGuillem Jover1-2/+0
The module already has 100% code coverage.
2015-05-18scripts/t: Add test cases for Dpkg::ConfGuillem Jover2-2/+113
2015-05-09Dpkg::Dist::Files: Parse filename on add_file() to initialize files valuesGuillem Jover1-1/+15
2015-05-09Dpkg::Dist::Files: Always sort the files list on outputGuillem Jover1-8/+10
This guarantees the debian/files and anything parsing it via this module get reproducible results regardless of things such as parallel builds. Reported-by: Jérémy Bobbio <lunar@debian.org>
2015-05-09Dpkg::Control::HashCore: Fix OpenPGP Armor Header Line parsingGuillem Jover2-1/+23
Cherry picked from commit b4ccfe4982161b8beb44f1d0c98f791c4f238edd. We should only accept [\r\t ] as trailing whitespace, although RFC4880 does not clarify what whitespace really maps to, we should really match the GnuPG implementation anyway, as that is what we use to verify the signatures. Fixes: CVE-2015-0840 Reported-by: Jann Horn <jann@thejh.net>
2015-05-09scripts/t: Skip test cases when there is no c++filt availableGuillem Jover2-1/+18
In principle we require c++filt at run-time, but for now let's not fail these tests on such systems.
2015-04-21scripts/t: Do not use system() string formGuillem Jover2-2/+2
This passes the arguments as a list, and stops ignoring stderr.
2015-04-21scripts/t: Fix typoGuillem Jover1-1/+1
2015-04-10scripts: Pass a list to open() for commands instead of a stringGuillem Jover1-1/+2
2015-03-30scripts/t: Ignore stderr from «dpkg --compare-versions» if it does not failGuillem Jover1-1/+8
Since commit ed4ce62868d2d03d87b24741cae4ace5a0d6056a, the command will emit warnings when using the deprecated operators '<' and '>'.
2015-03-30perl: Rework use and exporter declarationsGuillem Jover2-0/+2
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-28scripts: Remove unused «use Dpkg»Guillem Jover1-1/+0
2015-01-28Dpkg::Shlibs: Rename reset_library_paths() to blank_library_paths()Guillem Jover1-2/+2
This will allow to initialize the library paths to be an empty array, instead of just resetting it after the fact, which means the new name will make more sense.
2015-01-28test: Remove unused @save_paths variableGuillem Jover1-1/+0
2015-01-28Dpkg: Use shift instead of @_ on single argument unpackingGuillem Jover3-3/+3
2015-01-28test: Move use strict and warnings as the first directivesGuillem Jover8-5/+11
2015-01-28dpkg-gensymbols: Add support for arch-bits and arch-endian tagsGuillem Jover6-87/+278
These allow to tag symbols as being only relevant on architectures with specific bits or endianness. The current supported values are 32 and 64 for arch-bits, and little and big for arch-endian. They can also be combined by using multiple tags on the same symbol. Closes: #630342
2014-10-20scripts/t: Enable and fix minimal :native arch-qualifier testsGuillem Jover1-4/+4
2014-10-12scripts/t: Use nocheck instead of notest in build profile testsGuillem Jover1-21/+21
The name for the equivalent DEB_BUILD_OPTIONS value is nocheck, so avoid possible confusion and spreading through cargo-culting.
2014-10-12Dpkg::Getopt: New private moduleGuillem Jover1-0/+37
2014-10-12doc, scripts: Fix typos in commentsGuillem Jover5-5/+5
2014-10-06scripts/t: Make sure temporary files are always cleaned upGuillem Jover2-10/+6
If the test suite is interrupted or it fails in the middle, the temporary files will not be unlinked. Switch to use the native File::Temp support for removal.
2014-10-06scripts: Update restriction formula syntaxJohannes Schauer2-25/+50
- The restriction list parsing now reflects the changes at <https://wiki.debian.org/BuildProfileSpec> which were agreed upon in the bootstrap sprint 2014 in Paris. - Restriction lists are now restriction formulas. - Restriction formulas are given in disjunctive normal form expression: pkg <bar baz> <blub> - Removal of the implicit prefix/namespace mechanic. - Since there can be more than one <> block, the regex in parse_string() in Dpkg::Deps is now greedy. - Construct the profiles entry of the Packages-List field by converting the "<bar baz> <blub>" syntax into "bar,baz+blub". - Include a temporary compatibility mapping for the old way to write the Build-Profiles field in binary packages which can be removed once all affected source packages have moved to the new syntax. - Adjust testcases. Closes: #760158 [guillem@debian.org: - Add a warning when using the old syntax in dpkg-source. - Move comments before the regexes, not besides them in dpkg-source. - Change from an xnor to == in evaluate_restriction_formula(). - Move the Dpkg::Util import close to the other Dpkg imports. - Add test cases for the new parse_build_profiles() behavior. ] Signed-off-by: Guillem Jover <guillem@debian.org>
2014-10-06Dpkg::BuildProfiles: Add new parse_build_profile()Guillem Jover1-2/+7
Use it everywhere instead of inline code.
2014-10-06Dpkg::Deps: Add new deps_iterate() functionGuillem Jover1-1/+18
Closes: #759747 Based-on-patch-by: Dima Kogan <dima@secretsauce.net>
2014-10-06Dpkg::Deps::KnownFacts: Add support for versioned ProvidesGuillem Jover1-1/+34
This got missed in commit 5bb02fe80e9f40dcad9703a72f67cf615ff217b5.