Age | Commit message (Collapse) | Author | Files | Lines |
|
Enable code coverage support with 'configure --enable-coverage'. Use
gcov and lcov for C code coverage, and Devel::Cover and cover for Perl
code coverage.
|
|
|
|
|
|
This allows to have the local targets and be able to use the native
automake targets in the future.
|
|
|
|
Devel::Cover reports 97% coverage. Remaining branches are hard-to-test
without root privilege error handling.
[guillem@debian.org:
- Add new test into test_cases.
- Run program from builddir.
- Do not check for usage output on badusage.
- Use note() instead of diag().
- Sort database and list output.
- Skip some tests when under fakeroot. ]
Signed-off-by: Guillem Jover <guillem@debian.org>
|
|
Reflect the rewrite of update-alternatives in commit
cab5af04fadcd939a7becd5fcb25dcfb7bc121dd and the addition of
scripts/t/origin in commit 2d4fd627d4286dc42006fb486040209d4e021b9f.
|
|
update-alternative has been rewritten as a mostly standalone C program.
It has thus been moved to utils/ instead of scripts/ together with its
README and its test suite.
This rewrite is based on some initial conversion work done by Guillem
Jover <guillem@debian.org>.
The program now logs to /var/log/alternatives.log instead of dpkg.log.
The logrotate file has been updated to deal with that file too.
|
|
Ubuntu's changelog parsing is nearly identical to Debian's, but may emit
an additional Launchpad-Bugs-Fixed header. Test that changelogs
matching the appropriate regex are parsed correctly both for Debian and
Ubuntu.
To do this, we take copies of the standard origin files and add an
internal mechanism allowing Dpkg::Vendor to be pointed at them; and we
run 600_Dpkg_Changelog.t a second time with DEB_VENDOR set, to avoid
duplicating lots of code. See the discussion in #536066 for background.
|
|
variable
The copy & paste was too quick, I forgot to update the sed expression.
|
|
It is a public interface even if working around known limitations.
|
|
By default _SCRIPTS variables do not distribute the files.
|
|
|
|
|
|
The lib/ location was in order when the feature was proposed as a shell
library, now given it's a shell script it should be in scripts/ with
all the other scripts.
|
|
Forcing the value of compilation flags through environment variables set
by dpkg-buildpackages has not been very successful up to now and suffered
from the fact that calling debian/rules directly could lead to a different
build than what dpkg-buildpackage would have done.
This commit is the start of a new solution: dpkg-buildflags is a tool that
package maintainers are supposed to use in order to retrieve compilation
flags. It offers a way to control their default values at the distribution
level while still allowing customizations by users who recompile the
source packages.
|
|
|
|
The current sed expression was only replacing the first one, which
didn't take into account nested modules.
|
|
|
|
Some distributions already ship their own reimplementation of
update-alternatives, so we allow them to disable our own.
|
|
Put it where install-info is being handled.
|
|
Put it close to the other alternatives file and directory handling.
|
|
objects
|
|
Dpkg::Compression::CompressedFile -> Dpkg::Compression::FileHandle
Dpkg::Compression::Compressor -> Dpkg::Compression::Process
The new names are more expressive and avoid repeating "Compress".
Update all scripts and modules to use the new name.
|
|
|
|
|
|
|
|
functionality
Signed-off-by: Modestas Vainius <modax@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
|
|
* Rename previous tag tests to 'basictags'. Change the name everywhere and use
it consistenly throughout the testsuite. No new tests added.
* Fix 'wildcard symbol' test. It started failing due to changes in the symbol
data structure.
* Add a sub for save_load test.
Signed-off-by: Modestas Vainius <modax@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
|
|
This new module can be used to do symbol demangling with the c++filt
utility. For performance reasons, the c++filt program is run
in the background and used as a daemon: for each line written
it immediately outputs the demangled line.
The module also takes care of the c++filt process management
(forking and termination).
Signed-off-by: Modestas Vainius <modax@debian.org>
Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
|
|
This was causing diff problems as the file was changing depending on the
build system. Now it should be stable as it's always generated at check
time.
|
|
This allows to change it in a single place.
|
|
Avoid duplicated lists of files. Also this way we have proper
depdendencies in the check target for test_data files.
|
|
Wrap it into several lines. Remove unneeded quotes around some
arguments. Regroup environment variables settings.
|
|
The copy was done to make the relative paths inside the ld.so.conf
fragments work even in out of tree builds. We now switch the current
directory to $srcdir in 200_Dpkg_Shlibs.t when loading the fragments
and then go back.
|
|
|
|
|
|
Despite its name, this function does not actuallay parse anything by
itself, it just calls external parsers and returns their result. This
interface is largely used by other tools and is not tied with any of the
other Dpkg::Changelog modules so it's best kept separate.
Many scripts have to be updated to cope with the renaming.
|
|
Dpkg::Changelog::Entry is a somewhat generic representation of a
changelog entry. It offers an interface exporting the basic information
that we need to extract for dpkg-parsechangelog.
Dpkg::Changelog::Entry::Debian is the implementation of this
interface for the typical Debian changelog entry.
Dpkg::Control::Changelog is the object representing the
information exported by dpkg-parsechangelog. It starts empty
as a simple Dpkg::Control of type CTRL_CHANGELOG.
Those new modules are not yet used by the Dpkg::Changelog modules.
|
|
This module represents an ordered set of Dpkg::Control objects.
It ensures uniqueness for objects based on a customisable key.
|
|
|
|
|
|
This new module provides an official list of control fields as
well as many functions to query that list and the meta-information
associated to each list.
|
|
The new object interface combines the old Dpkg::Fields::Object
and the old parsecdata funtion.
The new object can be used like a regular hash and yet it behaves
intelligently taking into account all the specifics of control
information. Fields are case-insensitive, the order in which they have
been read is kept for output stability.
The object uses operator overloading and an internal tied hash so that
it just does what you mean.
|
|
Update all scripts and modules to use the new module names.
|
|
Update all scripts and modules to use the new module names.
|
|
Make it verbose when building the Debian packages.
|
|
Missed in commit 5e83d054b1a790d49bc88e3dd0e8fbb872d51d8f.
|
|
Missed in commits a27d14c4423c44b400764c99b669824f4ba6e9a1 and
6c785595d189f65a59284796a9b1f60f16686e85.
|
|
The backticks are treated like text, until the shell expands them, thus
making this solution portable.
|