summaryrefslogtreecommitdiff
path: root/t
Commit message (Collapse)AuthorAge
* Make it possible to pass perl code to autoscript.Marcin Owsiany2012-09-09
| | | | | | | The shell-quoted sed code passed as parameter 4 is fragile (see Bug#665296). Make it possible to pass a sub that operates on each line via $_ instead. Also add a basic unit test for Dh_Lib, for now just with tests for autoscript.
* hide deprecation noticeJoey Hess2011-08-06
| | | | Can this test be written w/o using --after?
* makefile.pm: remove build directory even if Makefile does not exist yet.Modestas Vainius2011-08-05
| | | | | | Assume that the package can be cleaned (i.e. the build directory can be removed) as long as it is built out-of-source tree and can be configured. This is useful for derivative buildsystems which generate Makefiles.
* adjust test number for new build systemJoey Hess2011-07-17
|
* maintscript filesJoey Hess2010-11-02
| | | | | | | dh_installdeb: Support debian/package.maintscript files, which can contain dpkg-maintscript-helper commands. This can be used to automate moving or removing conffiles, or anything added to dpkg-maintscript-helper later on. Closes: #574443 (Thanks, Colin Watson)
* stop testing jobserver availability codeJoey Hess2010-09-29
| | | | | Testing this is sensative to what FDs are inherited by the test script. After the recent fix, it started breaking another way.
* Avoid open fd 5 or 6 breaking buildsystem test suite. Closes: #596679Joey Hess2010-09-13
|
* adjust for new buildsystemJoey Hess2010-01-30
|
* Typo in the code.Modestas Vainius2009-12-04
| | | | How perl didn't fail one this is beyond me.
* Add --parallel option.Modestas Vainius2009-12-04
| | | | | | | | | This patch adds --parallel option that enables parallel builds and does not impose limits on maximum concurrent processes. --max-parallel (that implies --parallel) can be used to specify that maximum limit. Also make necessary adjustments to debhelper.pod and buildsystem_tests for this option.
* Sometimes SIGINTing the test suite leaves Makefile behind.Modestas Vainius2009-12-04
| | | | | So use -f for ln. It is safe. (cherry picked from commit d89a2c6d2c7148f6e890c0c11e64b92982d3f869)
* Remove legacy punctuation hacks tests which no longer work by design.Modestas Vainius2009-12-04
| | | | | | | | I assume backwards compatibility in this area was broken by design. Adding --max-parallel to these in 6dd27753803ae2091a9fc3aedc8e70548ea87675 was wrong and negated their whole point, i.e. testing of backwards compatibility when parallel options were not supported. (cherry picked from commit ca0ad4922ada7ae013b035cfe1550a257a330809)
* Drop tests previously written for dpkg-buildpackage -jX detection.Modestas Vainius2009-12-04
| | | | | dpkg-buildpackage -jX detection is gone so these tests were redundant. (cherry picked from commit fd6880eddac9bde6ecdec514a83a169f36316b6a)
* releasing version 7.4.8Joey Hess2009-11-23
|
* update for no-paralle-by-default changeJoey Hess2009-11-23
|
* cmake build+ steps need Makefile.Modestas Vainius2009-11-19
| | | | | | The condition is not what dh_auto_* 7.0.x would have done. The patch makes auto-selection to pass through cmake.pm if Makefile was not created. This problem is not very dangerous though.
* Add tests for #557006 bug.Modestas Vainius2009-11-19
| | | | | | | | When sourcedir/builddir is empty, check if: 1) auto-selection does not select any build system; 2) check_auto_buildable() returns numeric 0 for all auto-selectable build systems.
* Improve build system auto-selection processModestas Vainius2009-11-18
| | | | | | | | | | | | | | | This patch alters semantics of check_auto_buildable() a bit. Now it can also indicate if the source has already been partitially built with the build system and if so, such build system may be auto-selected over a less specific its parent (in the inheritance tree) even if the latter is earlier in the @BUILDSYSTEMS array. However, this still leaves a requirement that a derivative build system must not do anything that may break packages of the parent build system. Otherwise, introduction of a new derivative build system might break packages which already had that build system implemented via overrides... Signed-off-by: Modestas Vainius <modestas@vainius.eu>
* --max-parallel requires a numberJoey Hess2009-11-04
|
* update test suite for implicit parallelisation and flag renameJoey Hess2009-10-29
|
* reduce amount of MAKEFLAGS cleaningJoey Hess2009-10-28
| | | | | | | | | | | Now clean_jobserver_makeflags will only remove --jobserver settings from MAKEFLAGS. This is simpler and easier to understand than the old behavior, which, if there was no --jobserver, removed all -j and --jobs, while leaving those when removing --jobserver. This relies on -j options passed to make overriding -j settings in MAKEFLAGS. So we don't need to clean those out, we can just override them.
* split get_make_jobserver_status into two functionsJoey Hess2009-10-28
| | | | | | | | | | | I disliked the complexity of the return values, and the boilerplate code that followed the two calls to the function, to clean/unset MAKEFLAGS. To solve both, I refactored it into two functions, one simply tests to see if a jobserver is specified but unavailable, while the other cleans/unsets MAKEFLAGS. This loses the ability to pull the jobs-N count out of MAKEFLAGS, but that was not currently used.
* Support parallel building in makefile buildsystemModestas Vainius2009-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Add routine to Dh_Lib (used by dh and makefile.pm) which is capable of detecting make jobserver and job control options from the MAKEFLAGS environment variable. It also generates and returns a clean up MAKEFLAGS from these options. 2) Add --parallel option to build system framework which allows source packages to specify that they support parallel building. Optional value for this option is the number of maximum parallel process to allow. However, the actual number of parallel process (if any) for the specific build is determined from DEB_BUILD_OPTIONS env variable as specified by Debian Policy. By default (no --parallel option) parallel is neither enabled nor disabled (depends on the external environment). However, dh may pass --parallel to dh_auto_* implicitly in case 4) described below. 3) Add parallel support for makefile buildsystem. This implementation forcefully starts a new make job server (or disables parallel) for the number of process requested. If --parallel was not passed to the build system at all, the build system will only clean up MAKEFLAGS from stale jobserver options to avoid pointless make warnings. 4) If dh detects that it is being run by dpkg-buildpackage -jX and it is NOT run with "+" prefix from debian/rules (i.e. jobserver is not reachable), it enables --parallel implicitly. This closes: #532805. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
* two more dh_install testsJoey Hess2009-10-11
|
* Fix t/override_target to use ./run. Closes: #538315Joey Hess2009-07-25
|
* Merge branch 'buildsystems'Joey Hess2009-07-24
|\
| * Merge branch 'master' into buildsystemsJoey Hess2009-07-15
| |\ | | | | | | | | | | | | Conflicts: debian/changelog
| * | test suite should not need modification to add a new build systemJoey Hess2009-07-14
| | |
| * | remove enforce_out_of_source_buildingJoey Hess2009-06-29
| | | | | | | | | | | | | | | It was only used by the test suite, and while symetrical I don't feel that justifies keeping dead code.
| * | More verbose rmdir_builddir() and more its testsModestas Vainius2009-06-30
| | | | | | | | | | | | Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Support absolute paths for builddir.Modestas Vainius2009-06-30
| | | | | | | | | | | | | | | | | | | | | | | | If build directory is absolute or ../ path, _rel2rel falls back to absolute paths. Try even harder to convert supplied builddir to relative in _set_builddir(). Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Add absolute path test for canonpath.Modestas Vainius2009-06-30
| | | | | | | | | | | | Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Rename _canonpath to canonpath.Modestas Vainius2009-06-30
| | | | | | | | | | | | Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Rename enforce_out_of_source_building() to prefer_Modestas Vainius2009-06-30
| | | | | | | | | | | | | | | | | | | | | | | | Also add enforce_out_of_source_building() for clarity which does not take any parameters. Now both have a clear name and no confusing parameter combinations. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Less code in the build system classes to call enforce_out_of_source_building().Modestas Vainius2009-06-18
| | | | | | | | | | | | Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Some cosmetic changes in the comments and strings.Modestas Vainius2009-06-17
| | | | | | | | | | | | | | | | | | | | | | | | * buildsystem -> build system * dh_auto build system -> debhelper build system * plugin -> class * a few rewording changes in the comments. * Enhance python_distutils::DESCRIPTION().
| * | New short switches for buildsystem stuff, drop envvarsModestas Vainius2009-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New short switches: -D = --sourcedirectory -B = --builddirectory -S = --buildsystem * Drop DH_AUTO_BUILD* environment variables (reintroduced due to revert). * Adjust test suite. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Use another root directory in _rel2rel.Modestas Vainius2009-06-13
| | | | | | | | | | | | | | | | | | | | | Previous one caused test "_rel2rel no4" to fail. Also add a new test for _canonpath and two new tests for _rel2rel (related to "." handling). Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Drop special handling for build directory ./path.Modestas Vainius2009-06-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | Now build directory is always relative to the top directory (including default build directory) regardless what source directory is. However, if the build directory is not specified, it defaults to the source directory (aka in source building). Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Add a test suite for build systems.Modestas Vainius2009-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tests for core Buildsystem API (mostly path API). * Tests for check_auto_configure() for each buildsystem. * Build system autoselection tests under "typical" conditions for each buildsystem. * DH_AUTO_OPTIONS and command line argument parsing tests. * Real dh_auto_* tests for autoconf/makefile build systems with emulated. autoconf behaviour under in both in source and out of source tree scenarios. Signed-off-by: Modestas Vainius <modestas@vainius.eu>
| * | Include Debian/Debhelper subdirs in syntax check.Modestas Vainius2009-06-11
| | |
* | | add test of dh's makefile parsingJoey Hess2009-07-17
| | |
* | | more testsJoey Hess2009-07-15
| |/ |/|
* | dh_install: Add test suite covering the last 5 bugs.Joey Hess2009-07-15
|/
* include dh in syntax checkJoey Hess2008-10-21
|
* Add a test for pod correctness.Florian Ragwitz2008-04-24
|
* dh_installman: man --recode transparently uncompresses compressed pages. So ↵Joey Hess2008-04-01
| | | | when saving the output back, save it to a non-compressed filename (and delete the original, compressed file). Closes: #470913
* r2020: * dh_link: Skip self-links. Closes: #438572joeyh2007-08-18
|
* r1941: * ACK last three NMUs with thanks to Raphael Hertzog for making the ↵joeyh2006-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | best of a difficult situation. * Revert all dh_python changes. Closes: #381389, #378604 * Conflict with python-support << 0.5.3 and python-central << 0.5.5. * Make dh_python do nothing if debian/pycompat is found. The new versions of dh_pysupport or dh_pycentral will take care of everything dh_python used to do in this situation. * dh_python is now deprecated. Closes: #358392, #253582, #189474 * Non-maintainer upload. * Update of dh_python - when buidling for a non-standard Python version, generate more reasonable Depends like "python (>= X.Y) | pythonX.Y" Closes: #375576 - fix handling of private extensions. Closes: #375948 - fix parsing of XS-Python-Version, it didn't work if only fixed versions were listed in XS-Python-Version. - fix use of unitialized value. Closes: #374776 - fix typos in POD documentation. Closes: #375936 * Non-maintainer upload. * Update of dh_python - vastly refactored, easier to understand, and the difference between old policy and new policy is easier to grasp - it supports an -X option which can be used to not scan some files - uses debian/pyversions as reference source of information for dependencies but also parse the XS-Python-Version header as fallback. - ${python:Versions}'s default value is XS-Python-Version's value instead of "all" when the package doesn't depend on a specific python version. Closes: #373853 - always generate ${python:Provides} and leave the responsibility to the maintainer to not use ${python:Provides} if he doesn't want the provides. - uses debian/pycompat or DH_PYCOMPAT as reference field to run in new policy mode. The presence of XS-Python-Version will also trigger the new policy mode (this is for short-term compatibility, it may be removed in the not too-distant future). DH_PYCOMPAT=1 is the default mode and is compatible to the old policy. DH_PYCOMPAT=2 is the new mode and is compatible with the new policy. * Use "grep ^Version:" instead of "grep Version:" on the output of dpkg-parsechangelog since the above changelog entry matched "Version:" and thus made the build fail. * Non-maintainer upload. * Integrate the new dh_python implementing the new Python policy. Closes: #370833
* r1939: * Add size test, which fails on any debhelper program of more than 150joeyh2006-07-29
| | | | lines. This is not a joke, and 100 lines would be better.