aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAge
* add option to export tarballs with upstream signatureChristian Göttsche2020-01-21
| | | | | | | Add option `--upstream-signatures=[on|auto|off]` to export-orig. Add option `--git-upstream-signatures=[on|auto|off]` to buildpackage. Closes: 872864
* test_import_dsc.py: Test signature importGuido Günther2019-10-27
|
* import_orig: Test prepare_pristine_tar()Guido Günther2019-10-27
|
* test_import_orig: Test upstream signature import with pristine-tarGuido Günther2019-10-27
|
* Update submoduleGuido Günther2019-10-27
| | | | This gives us signature data
* Use UpstreamSource for additional tarballs as wellGuido Günther2019-10-27
| | | | | This will help on upstream tarball signatures as well as improving additional tarball handling.
* export_orig: Don't fail without a repositoryGuido Günther2019-10-26
| | | | | This is a valid use case in overlay mode Thanks: Thomas Koch for the report
* export-orig: Check 'origin/pristine-tar' as well for compression typeGuido Günther2019-10-07
| | | | Closes: #941894
* import-orig: Allow to run a post unpack hookGuido Günther2019-04-25
| | | | | The working directory of the hook is the top temporary directory the tarballs are being unpacked into.
* tests: Drop mime headers from test caseGuido Günther2019-03-21
| | | | | | | As a result of 74669f0925b7c3d08a735d4e302b656b766d15cf we don't parse these out anymore (but don't need them either) Gbp-Dch: Ignore
* PatchSeries: Don't fail if there's only a patch end markerGuido Günther2018-12-16
| | | | | | | | If the patch only has '---' we pass empty data to git-mail-info otherwise. Thanks: James Cowgill for the detailed report Closes: #916545
* PristineTar: Don't fail if pristine-tar does't support signaturesGuido Günther2018-11-24
|
* pristine-tar: support checking in/out upstream signaturesGuido Günther2018-11-24
|
* buildpackage, export-orig: support version substitution for --git-tarball-dirLuca Boccassi2018-11-23
| | | | | | | | | Add support for passing %(version), %(hversion) and %(version%A%B) in buildpackage --git-tarball-dir and export-orig --tarball-dir. Closes: #909266 Signed-off-by: Luca Boccassi <bluca@debian.org>
* Refresh tests data submoduleLuca Boccassi2018-11-23
|
* PatchSeries: Only pass patch description and header to git-mailinfoGuido Günther2018-11-08
| | | | | | | | | | | | | | There are patches around that use Content-Transfer-Encoding: base64 but the actual patch after '---' is unencoded ascii resulting in garbage after the patch description when imported into a patch queue. Since we're discarding the patch part of git-mailinfo anyway don't pass this on in the first place. Closes: #912426
* buildpackage{,-rpm}: add preexport hookLuca Boccassi2018-10-28
| | | | | | | | | | | | | | | Sometimes it is necessary to perform operations before preparing the tarballs and exporting to the build directory. One such case is when having to handle extremely large binary assets in the orig tarball and at the same time complex packaging code, which makes it desirable to separate the two into different repositories for easier handling. A pre-export hook allows to ensure that the tarball repository is present and checked out at the correct branch. Closes: #909266 Signed-off-by: Luca Boccassi <bluca@debian.org>
* Fix flake8's W605 (invalid escape sequence)Guido Günther2018-10-15
| | | | | | See also https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* tests: small fix for import-orig-rpm component testMarkus Lehtonen2018-09-20
| | | | | | | | | | | | Merge behaviour in newer git versions (> v2.16) is slightly different. This broke one test with an error something like: Traceback (most recent call last): File "tests/component/rpm/test_import_orig_rpm.py", line 243, in test_misc_options eq_(len(repo.get_commits(until='pack')), 3) AssertionError: 2 != 3 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* pq: Fix testcaseGuido Günther2018-08-24
| | | | Pseudo headers are now moved to the top of the patch.
* Add test case for bug #905934Ben Hutchings2018-08-24
|
* Add test case for conversion of extra DEP-3 headers to pseudo-headersGuido Günther2018-08-24
| | | | | Currently the extra DEP-3 headers may end up as trailers instead of should be pseudo-headers.
* New command to merge in changes from a upstream using gitGuido Günther2018-08-19
| | | | This reverts commit 3384a0f7a763144e5d627c454d7d76c2841e553b.
* Make flak8 happyGuido Günther2018-08-19
| | | | Gbp-Dch: Ignore
* Revert "gbp import-ref: New command to merge in changes from a upstream ↵Guido Günther2018-08-19
| | | | | | | | using git" This reverts commit 1592882c38fcbb107332d9a0a63b8da4e0bf8a48. It's not ready yet.
* Ignore merge commits when looking at the pristine-tar branchIain Lane2018-08-17
| | | | | | | | | | | | | | | | When there is a merge commit in this branch, we currently get the warning: gbp:warning: Unknown compression type of Merge branch 'pristine-tar' into 'pristine-tar', assuming gzip because we're grepping the commit logs to find out the compression type of the tarballs in there. For now, we can just use `git log ... --no-merges' to not see these commits. Signed-off-by: Guido Günther <agx@sigxcpu.org> Closes: #906331
* pull: allow to set up branch tracking for missing branchesGuido Günther2018-08-08
| | | | If the remote branch does not exist at all that's currently not fatal.
* tests: clarify test namesGuido Günther2018-08-08
| | | | Gbp-Dch: Ignore
* gbp import-ref: New command to merge in changes from a upstream using gitGuido Günther2018-05-24
|
* tests: Check help output of tag and push tooGuido Günther2018-05-24
|
* push: Allow to skip upstream and debian branch and tag pushGuido Günther2018-05-22
| | | | | | | Push of tag and or branch can be skipped by setting --{upstream,debian}-{branch,tag}='' . Closes: #899234
* config: when printing a single value only print the valueGuido Günther2018-04-26
| | | | | This is more in line with what `git config` does and eases usage in scripts.
* Revert "Turn on several threads when creating xz/lzma tarballs"Guido Günther2018-04-03
| | | | | | This changes the tarballs and therefore the checksums. This reverts commit fd81e454339de50931594bd150857eb88a516a98.
* tests: enable unittests without devscriptsMarkus Lehtonen2018-03-01
| | | | | | | | Add some additional skipIf statements, checking for the existence of the debchange tool. Makes it possible to run unit tests in an environment that doesn't have devscripts installed. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests.testutils: helpers for checking existence of commandsMarkus Lehtonen2018-03-01
| | | | | | | | | Add new have_cmd() helper for checking if a command is available, and, a skip_without_cmd() decorator for skipping tests in case a command is missing. Convert existing checks for commands to use these new functions. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* RollbackDebianGitRepository: quote refs for readabilityGuido Günther2018-02-26
|
* Move rollback code out of import_origGuido Günther2018-02-26
| | | | so it can be reused in gbp import-ref
* 8bit GuidoGuido Günther2018-02-26
|
* Turn on several threads when creating xz/lzma tarballsGuido Günther2018-01-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | and not using pristine-tar. Gives a 50% speedup on my machine: $ time gbp export-orig --no-pristine-tar --force-create gbp:info: Creating thunderbird_52.6.0.orig.tar.xz from 'upstream/52.6.0' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-thunderbird-l10n.tar.xz' from 'dea43c2b49f11d68f05edac2bd9d6c5d1e1f4bcb' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-lightning-l10n.tar.xz' from '9adcd261726ccb160c4fd6947f7cbfe9df2e581b' real 8m27,153s user 7m23,717s sys 0m3,015s 0|agx@bogon:/var/scratch/debian/icedove/icedove (debian/wheezy)$ time gbp-from-sourcetree export-orig --no-pristine-tar --force-create gbp:info: Creating thunderbird_52.6.0.orig.tar.xz from 'upstream/52.6.0' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-thunderbird-l10n.tar.xz' from 'dea43c2b49f11d68f05edac2bd9d6c5d1e1f4bcb' gbp:info: Creating additional tarball 'thunderbird_52.6.0.orig-lightning-l10n.tar.xz' from '9adcd261726ccb160c4fd6947f7cbfe9df2e581b' real 4m3,080s user 11m18,733s sys 0m3,499s Thanks: Carsten Schönert for the suggestion Closes: #888572
* gbplogtaster: capture INFO and DEBUG log levels tooGuido Günther2018-01-29
| | | | | | | | This allows to test for certain features more easily and to use it not only in the error case. Using two different streams allows us to test that messages still end up on stderr or stdout correctly.
* buildpackage-rpm: support setting the 'VCS:' tag in specMarkus Lehtonen2018-01-29
| | | | | | | | | | | | | | | | | Now gbp buildpackage-rpm is able to update the 'VCS:' tag in the exported spec file. A new config option 'spec-vcs-tag' controls the format: - if empty, no 'VCS' tag is inserted and possible old 'VCS' tag is removed - otherwise, a 'VCS' tag is inserted or the old 'VCS' tag is updated The spec-vcs-tag is a format string which supports the following keywords: - '%(commit)' expands to the full commit sha1 - '%(commitish)' expands to the sha1 of the exported object (commit or tag) - '%(tagname)s' expands to the long tag name (from git-describe) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* gbp-pull: implement --all cmdline optionMarkus Lehtonen2018-01-23
| | | | | | | | This updates all remote-tracking branches (for the remote that is fetched from) whose local branch name is identical to the remote branch name. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: fix typo in docstringMarkus Lehtonen2018-01-23
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-srpm: support --upstream-vcs-tag cmdline optionMarkus Lehtonen2018-01-22
| | | | | | Similar to what the option does in git-import-orig. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-srpm: implement --skip-packaging-tag optionMarkus Lehtonen2018-01-22
| | | | | | Corresponding the --skip-debian-tag options of import-dsc. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: add more tagging tests for import-srpmMarkus Lehtonen2018-01-22
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* dch: implement postedit hooksMarkus Lehtonen2018-01-20
| | | | | | | Add new --postedit command line option for defining a custom hook that will be run after changes to the changelog file has been finalized. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* push: allow to push from detached headsGuido Günther2018-01-19
|
* tests.testutils: fix stderr captureMarkus Lehtonen2018-01-18
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* pq-rpm: implement --drop optionMarkus Lehtonen2018-01-17
| | | | | | | Makes it possible to automatically drop the pq-branch after a successful export. Counterpart for the --drop option of (deb) gbp-pq. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>