summaryrefslogtreecommitdiffhomepage
path: root/tests/component
Commit message (Collapse)AuthorAge
* 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
|
* 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>
* pq: Parse DEP3 headersMaximiliano Curia2017-12-24
| | | | | | | | | | | | | | | | | | Currently the patch headers in DEP3 format are partially supported, as git's mailinfo only reads the From and Subject fields from the first paragraph. But the default in dep3 patches is Description and Author, that are ignored by git. Even worse, when this fields are in the first paragraph (again the default) git mailinfo drops all the contained information. This patch parses the dep3 headers if git's mailinfo couldn't obtain any useful information, any header other than Subject|Description and Author|From is appended to the patch message. The description field is splitted in first line for the short description and the rest is prepended to the patch message. Closes: #785274
* tests: let _check_repostate check repo cleaniness as wellGuido Günther2017-11-16
| | | | This will point out any unintended leftovers.
* tests: Standardize test descriptionsGuido Günther2017-11-13
| | | | Gbp-Dch: Ignore
* tests: Fix test_import_orig_rpm descriptionGuido Günther2017-11-12
| | | | Gbp-Dch: Ignore
* import-dsc: Apply filters on debian tarballs tooGuido Günther2017-11-10
| | | | Closes: #881311
* buildpackage: Check that upstream tarballs are in export_dir in overlay modeGuido Günther2017-11-09
| | | | Checks: #879781
* buildpackage: Expand --git-comp-type auto again in --git-overlay modeGuido Günther2017-11-09
| | | | | Thanks: Maximiliano Curia for the detailed analysis Closes: #879781
* buildpackage: unpack additional tarballs as well in --git-overlay modeGuido Günther2017-11-09
| | | | Closes: #881253
* buildpackage: test additional tarball build with export-dir tooGuido Günther2017-11-09
|
* buildpackage: Add back --git-pristine-tar-commit supportGuido Günther2017-11-08
| | | | | | The call got lost when we split out export-orig. Closes: #880624
* Make import-orig-rpm tests work with import-origGuido Günther2017-11-07
| | | | | | | | We use the Debian version to import RPMs since there's currently no separate import-orig-rpm needed. The tests also cover cases we're currently not testing in components/deb/test_import_orig.py.
* tests: add tests for gbp import-orig-rpmMarkus Lehtonen2017-11-07
| | | | | | Basic tests for virtually all features of import-orig-rpm. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import-orig: s/recover/rollback/Guido Günther2017-11-07
| | | | Gbp-Dch: Ignore
* tests: use encoding when opening files for checks and fixturesGuido Günther2017-11-06
| | | | so we don't fail on non utf-8 locales
* push: Don't abort on first failureGuido Günther2017-11-01
| | | | Push as many refs as possible instead of aborting on the first error.
* import-dsc: make sure we don't create 'master' if not neededGuido Günther2017-10-23
| | | | | | | | | | This way we only get the debian- and upstream-branch in empty repos and not a pointless 'master' if debian-branch is not set to master. It also makes sure we don't need --create-missing-branches on empty repos where it is pointless. Closes: #750962
* Kill six.movesGuido Günther2017-10-20
|
* pq: let drop work when pq branch is checked outGuido Günther2017-10-20
|
* pq: import pq branch on switchGuido Günther2017-10-20
| | | | Closes: #761166
* pq: import patches before rebaseGuido Günther2017-10-19
| | | | | | if the pq branch doesn't exist yet. Closes: #876800
* import-dsc: test importing multiple debian revisions worksGuido Günther2017-10-18
| | | | | | so we don't regress on d0ee56bc0e6d53ee952d9c4e30dbe78e40e18383. Gbp-Dch: Ignore
* tests_import_dsc: remove some redundanciesGuido Günther2017-10-18
|
* import-orig: Use gz compression when repackaging non tarball filtered ↵Guido Günther2017-09-30
| | | | | | | | | | upstream source If the source isn't a tarball we have to use a sane default compression. This should probably be configurable. This makes it consistent with export_orig:guess_comp_type when no compressor could be detected.
* import-orig: rename source to upstreamGuido Günther2017-09-30
| | | | | | to avoid confusion with DebianSource. Gbp-Dch: Ignore
* Unbreak testsGuido Günther2017-09-15
| | | | Gbp-Dch: Ignore
* Add tag commandGuido Günther2017-09-14
| | | | | | | | | | by splitting out the code from buildpackage This is shorter than running gbp buildpackage --git-tag-only Closes: #797086
* patch_series: don't let "git mailinfo" sanitize the subjectGuido Günther2017-08-31
| | | | | | | This would strip away text in []. This improves the import/export round trip. Closes: #872354
* buildpackge: add test for overlay modeGuido Günther2017-08-08
|
* push: new command to push changes in one goGuido Günther2017-08-06
| | | | Closes: #733639
* Fix typoGuido Günther2017-08-06
|
* pq: don't create empty pq branch on rebase and switchGuido Günther2017-08-05
| | | | | | We always want to start from an imported series. Thanks: Chris Lamb for the reproducer
* export_orig: new command to export orig tarballs from gitGuido Günther2017-08-03
| | | | Closes: #840089
* Move compressed tarball creation to PkgGitRepositoryGuido Günther2017-08-03
|
* test_import_orig: properly pick debian dirGuido Günther2017-08-02
|
* dch: test customizationsGuido Günther2017-08-02
| | | | and fail properly when the file can't be found
* test_pq_rpm: adjust log matchesGuido Günther2017-08-02
| | | | since we strip newlines more consistently now in GitRepository
* fixup! rpm component tests: bytes vs strings in paths and dataGuido Günther2017-08-02
|
* test_buildpackage_rpm: correctly mock False stateGuido Günther2017-08-02
| | | | | This way we don't need to rely on python comparing our tristate to True / False correctly.
* rpm component tests: bytes vs strings in pathsGuido Günther2017-08-02
|
* deb component tests: bytes vs strings in pathsGuido Günther2017-08-02
|
* component tests: subprocess.check_output returns bytes nowGuido Günther2017-08-02
|