summaryrefslogtreecommitdiff
path: root/scripts/Makefile.am
AgeCommit message (Collapse)AuthorFilesLines
2010-07-11build: Add optional code coverage supportGuillem Jover1-1/+8
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.
2010-07-11build: Move dpkg_divert test case from scripts to srcGuillem Jover1-2/+1
2010-07-11build: Refactor perl test-suite support into a new Makecheck.am fileGuillem Jover1-14/+8
2010-07-11build: Rename overriding check targets to check-localGuillem Jover1-1/+1
This allows to have the local targets and be able to use the native automake targets in the future.
2010-07-03dpkg-divert: Rewrite in CGuillem Jover1-2/+0
2010-07-03dpkg-divert: Add new test-caseMikhail Gusarov1-1/+2
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>
2010-06-15Fix ”make distcheck“ errorsSven Joachim1-2/+4
Reflect the rewrite of update-alternatives in commit cab5af04fadcd939a7becd5fcb25dcfb7bc121dd and the addition of scripts/t/origin in commit 2d4fd627d4286dc42006fb486040209d4e021b9f.
2010-06-09update-alternatives: rewritten in CRaphaël Hertzog1-12/+0
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.
2010-05-21Add tests for Ubuntu changelog parsingColin Watson1-0/+2
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.
2010-05-17Makefile.am: fix do_shell_subst to update a shell variable instead of a perl ↵Raphaël Hertzog1-1/+1
variable The copy & paste was too quick, I forgot to update the sed expression.
2010-05-17Rename /usr/lib/dpkg/maintscript-helper in /usr/bin/dpkg-maintscript-helperRaphaël Hertzog1-2/+9
It is a public interface even if working around known limitations.
2010-04-21build: Distribute maintscript-helperGuillem Jover1-1/+1
By default _SCRIPTS variables do not distribute the files.
2010-04-19dpkg-mergechangelogs: add non-regression testsRaphaël Hertzog1-2/+10
2010-04-19dpkg-mergechangelogs: new script doing 3-way merge of Debian changelogsRaphaël Hertzog1-0/+2
2010-04-18Move maintscript-helper from lib/ to scripts/Raphaël Hertzog1-0/+2
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.
2010-04-11dpkg-buildflags: new script to retrieve compilation flags during package buildRaphaël Hertzog1-0/+2
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.
2010-04-11Dpkg::BuildFlags: new module to query/manage build flagsRaphaël Hertzog1-0/+1
2010-03-12build: Replace all / with :: on perl module man pages filenamesGuillem Jover1-1/+1
The current sed expression was only replacing the first one, which didn't take into account nested modules.
2010-02-26Generate manual pages for perl modules with pod2manRaphaël Hertzog1-1/+24
2010-02-25build: Add new --without-update-alternativesGuillem Jover1-2/+7
Some distributions already ship their own reimplementation of update-alternatives, so we allow them to disable our own.
2010-02-25build: Move <sbindir>/install-info uninstallation to utils/Guillem Jover1-1/+0
Put it where install-info is being handled.
2010-02-25build: Move <admindir>/alternatives directory creation to scripts/Guillem Jover1-0/+1
Put it close to the other alternatives file and directory handling.
2010-02-20Dpkg::Interface::Storable: common convenience methods for serialization of ↵Raphaël Hertzog1-0/+1
objects
2010-01-22Rename Dpkg::Compression::CompressedFile and Dpkg::Compression::CompressorRaphaël Hertzog1-2/+2
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.
2010-01-22Add non-regression tests for Dpkg::Compression::CompressedFileRaphaël Hertzog1-0/+1
2010-01-22Rename Dpkg::Source::CompressedFile into Dpkg::Compression::CompressedFileRaphaël Hertzog1-1/+1
2010-01-22Rename Dpkg::Source::Compressor into Dpkg::Compression::CompressorRaphaël Hertzog1-1/+1
2010-01-11scripts/t/200_Dpkg_Shlibs.t: extend test suite to cover symbol patterns ↵Raphaël Hertzog1-1/+13
functionality Signed-off-by: Modestas Vainius <modax@debian.org> Signed-off-by: Raphaël Hertzog <hertzog@debian.org>
2010-01-11scripts/t/200_Dpkg_Shlibs.t: cleanup and fix non-regression testModestas Vainius1-7/+7
* 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>
2010-01-11Dpkg::Shlibs::Cppfilt: new interface to the c++filt utility.Modestas Vainius1-0/+2
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>
2009-11-20build: Do not ship objdump.tags-<arch> files in the repoGuillem Jover1-5/+6
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.
2009-11-20Refactor temporary test cases path to a tmpdir variableGuillem Jover1-2/+4
This allows to change it in a single place.
2009-11-20build: Split test_cases and test_data from EXTRA_DISTGuillem Jover1-41/+47
Avoid duplicated lists of files. Also this way we have proper depdendencies in the check target for test_data files.
2009-11-20build: Clean up perl test suite invokationGuillem Jover1-1/+6
Wrap it into several lines. Remove unneeded quotes around some arguments. Regroup environment variables settings.
2009-11-20build: Do not copy 200_Dpkg_Shlibs data files to t.tmpGuillem Jover1-3/+0
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.
2009-11-20build: Merge the mkdir_t_tmp target into the check targetGuillem Jover1-3/+1
2009-11-09Dpkg::Conf: new module to parse options from a configuration fileRaphaël Hertzog1-0/+1
2009-10-31Move parse_changelog() to a separate module Dpkg::Changelog::ParseRaphaël Hertzog1-0/+1
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.
2009-10-31Dpkg::Changelog::Entry, Dpkg::Control::Changelog: new modulesRaphaël Hertzog1-0/+3
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.
2009-10-31Dpkg::Index: new moduleRaphaël Hertzog1-0/+1
This module represents an ordered set of Dpkg::Control objects. It ensures uniqueness for objects based on a customisable key.
2009-09-30dpkg-statoverride: Rewrite in CGuillem Jover1-2/+0
2009-09-19Drop Dpkg::Fields and convert everything to Dpkg::Control::FieldsRaphaël Hertzog1-1/+0
2009-09-19Dpkg::Control::Fields: official list of control fieldsRaphaël Hertzog1-0/+1
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.
2009-09-19Dpkg::Control: new object interfaceRaphaël Hertzog1-0/+2
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.
2009-09-16Rename Dpkg::Cdata into Dpkg::ControlRaphaël Hertzog1-1/+1
Update all scripts and modules to use the new module names.
2009-09-16Rename Dpkg::Control in Dpkg::Control::InfoRaphaël Hertzog1-1/+1
Update all scripts and modules to use the new module names.
2009-09-15Make the build silent by defaultGuillem Jover1-2/+3
Make it verbose when building the Debian packages.
2009-08-26Use double instead of single quotes to allow backticks to expandGuillem Jover1-1/+2
Missed in commit 5e83d054b1a790d49bc88e3dd0e8fbb872d51d8f.
2009-08-26Add missing files in EXTRA_DISTGuillem Jover1-0/+1
Missed in commits a27d14c4423c44b400764c99b669824f4ba6e9a1 and 6c785595d189f65a59284796a9b1f60f16686e85.
2009-08-16Use backticks instead of non-portable make $(shell ...) functionGuillem Jover1-1/+1
The backticks are treated like text, until the shell expands them, thus making this solution portable.