tools/git-buildpackage-rpm-testdata.git
4 years agoFix tags in rpm spec files sandbox/xuwc/update_gbp_0.9.28
Jochen Sprickerhof [Sun, 31 Jan 2021 21:04:37 +0000 (22:04 +0100)]
Fix tags in rpm spec files

Patches and Sources, counting from 0.

https://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch09s03s04.html

4 years agoAdd commands to README
Jochen Sprickerhof [Sun, 31 Jan 2021 20:56:04 +0000 (21:56 +0100)]
Add commands to README

4 years agoAdopt to Python 3
Jochen Sprickerhof [Sun, 31 Jan 2021 15:22:55 +0000 (16:22 +0100)]
Adopt to Python 3

8 years agoDon't redefine sha1
Guido Günther [Thu, 5 Jan 2017 19:26:36 +0000 (20:26 +0100)]
Don't redefine sha1

to make flake8 happy

8 years agoflake8 clean
Guido Günther [Tue, 3 Jan 2017 17:50:32 +0000 (18:50 +0100)]
flake8 clean

9 years agoUpdate pristine-tar branches of test repositories
Markus Lehtonen [Tue, 8 Dec 2015 21:35:04 +0000 (23:35 +0200)]
Update pristine-tar branches of test repositories

Make them compatible with Debian.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoDrop signatures and diffstat from test repo patch files
Markus Lehtonen [Tue, 8 Dec 2015 21:32:57 +0000 (23:32 +0200)]
Drop signatures and diffstat from test repo patch files

Just a cosmetic change to reduce the "noise" in the patch files.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agomanage.py: sort keys when exporting manifest.json
Markus Lehtonen [Tue, 8 Dec 2015 21:31:07 +0000 (23:31 +0200)]
manage.py: sort keys when exporting manifest.json

More predictable output.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agomanage.py: use --no-stat and --no-signature in format-patch
Markus Lehtonen [Tue, 8 Dec 2015 21:08:21 +0000 (23:08 +0200)]
manage.py: use --no-stat and --no-signature in format-patch

Just unneeded noise in the patches.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agomanage.py: suppress diff of git-show with '-s'
Markus Lehtonen [Tue, 8 Dec 2015 17:42:52 +0000 (19:42 +0200)]
manage.py: suppress diff of git-show with '-s'

Instead of '--no-patch' which is not available in older git versions.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agomanage.py: checkout commit in commit_patch()
Markus Lehtonen [Tue, 8 Dec 2015 17:07:23 +0000 (19:07 +0200)]
manage.py: checkout commit in commit_patch()

Do 'checkout' instead of 'reset --hard' as that fails on some old
versions of git if HEAD points to a non-existent ref (i.e. orphan
__tmp__ branch in our case).

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agomanage.py: fix order of commit-tree arguments
Markus Lehtonen [Tue, 8 Dec 2015 16:57:58 +0000 (18:57 +0200)]
manage.py: fix order of commit-tree arguments

Some older versions of git fail with the previous order.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoSimpler branch and tag naming in test repos
Markus Lehtonen [Thu, 26 Nov 2015 14:58:05 +0000 (16:58 +0200)]
Simpler branch and tag naming in test repos

Removes the cumbersome srcdata/... prefixes from the branch and tag
names. Also, renames pristine_tar branches to pristine-tar as this
re-naming hack is not needed, anymore.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoAdd serialized test package repositories
Markus Lehtonen [Thu, 26 Nov 2015 13:03:47 +0000 (15:03 +0200)]
Add serialized test package repositories

Direct import of the srcdata/<package>/... branches and tags of the main
repository into serialized per-package repositories.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoAdd manage.py
Markus Lehtonen [Tue, 24 Nov 2015 15:57:27 +0000 (17:57 +0200)]
Add manage.py

A new script for managing the test package repositories and building the
binary test artefacts (rpm, srpm and orig tarballs) from those.
Previously, test packages were maintained as separate branches in this
test data repository. However, this cluttered the refs space of the main
repository and made managing the test package "repositories" cumbersome
and also error prone, as many packages were basically managed in the
same git repository. Multiple branches also caused problems for
downstream users as the main repository is basically used as a git
submodule of git-buildpackage repository.

In the new model test package repositories are "serialized" as patches
accompanied with the proper metadata to re-construct the git repository
when needed. The new manage.py script is a tool for creating and
serializing the test package repositories as well as building binary
artefacts from these repositories. The repositories can be "perfectly"
re-constructed, meaning that all tags and local branches are restored
with full history and all object hashes are preserved as well.

The data layout shall be such that serialized data of a each repository
resides in a separate <NAME>.data directory. When changes to the
repository are required, or it needs to be built, it can be
reconstructed into <NAME>.repo directory.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoRemove bootstrap.py and manifest file
Markus Lehtonen [Thu, 26 Nov 2015 12:46:08 +0000 (14:46 +0200)]
Remove bootstrap.py and manifest file

A step towards new way of managing the test package repositories.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
9 years agoAdapt branches to new patch-export option names
Markus Lehtonen [Thu, 26 Feb 2015 09:16:32 +0000 (11:16 +0200)]
Adapt branches to new patch-export option names

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobootstrap: unbreak branch update master
Markus Lehtonen [Thu, 26 Feb 2015 09:06:27 +0000 (11:06 +0200)]
bootstrap: unbreak branch update

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd pristine-tar branches
Markus Lehtonen [Fri, 18 Jul 2014 13:05:35 +0000 (16:05 +0300)]
Add pristine-tar branches

Use mangled branch names ('pristine_tar' instead of 'pristine-tar') to
not confuse pristine-tar tool.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd dummy binary RPMs
Markus Lehtonen [Fri, 18 Jul 2014 13:05:29 +0000 (16:05 +0300)]
Add dummy binary RPMs

Reference RPMs for buildpackage testing.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobootstrap: fix loading of hooks
Markus Lehtonen [Mon, 21 Jul 2014 08:51:24 +0000 (11:51 +0300)]
bootstrap: fix loading of hooks

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobootstrap: disable one anomalous pylint err
Markus Lehtonen [Mon, 21 Jul 2014 08:50:59 +0000 (11:50 +0300)]
bootstrap: disable one anomalous pylint err

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobootstrap: give log string arguments as function parameters
Markus Lehtonen [Mon, 21 Jul 2014 08:26:02 +0000 (11:26 +0300)]
bootstrap: give log string arguments as function parameters

Cosmetic code style fix.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agomanifest: add original branch name
Markus Lehtonen [Fri, 18 Jul 2014 13:05:23 +0000 (16:05 +0300)]
manifest: add original branch name

Needed when branch names must not be mangled - e.g. when building
packages as the branch names are configured in package-specific
gbp.conf.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoAdd pq/development branch for 'gbp-test' package
Markus Lehtonen [Fri, 18 Jul 2014 12:59:49 +0000 (15:59 +0300)]
Add pq/development branch for 'gbp-test' package

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agoUpdate manifest
Markus Lehtonen [Fri, 18 Jul 2014 12:56:14 +0000 (15:56 +0300)]
Update manifest

Adds .gitignore to gbp-test/master branch.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobootstrap: add manifest subclass
Markus Lehtonen [Tue, 10 Jun 2014 12:51:09 +0000 (15:51 +0300)]
bootstrap: add manifest subclass

Move add_project() functionality from gbp back to the test data repo.
This functionality is only used here so it makes sense to maintain it
here, too.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
10 years agobootstrap: Fix one log message
Markus Lehtonen [Tue, 10 Jun 2014 12:09:14 +0000 (15:09 +0300)]
bootstrap: Fix one log message

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agomanifest: export native package branches, too
Markus Lehtonen [Tue, 25 Feb 2014 09:08:55 +0000 (11:08 +0200)]
manifest: export native package branches, too

Also, updates to some branches that will now contain rpm changelogs in
the packaging data.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: minor typo fix
Markus Lehtonen [Tue, 25 Feb 2014 09:05:39 +0000 (11:05 +0200)]
bootstrap: minor typo fix

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd test repo manifest
Markus Lehtonen [Fri, 27 Sep 2013 11:16:18 +0000 (14:16 +0300)]
Add test repo manifest

For testing gbp pq-rpm, for now.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: build without switching branches
Markus Lehtonen [Fri, 27 Sep 2013 09:19:49 +0000 (12:19 +0300)]
bootstrap: build without switching branches

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: return to current branch
Markus Lehtonen [Fri, 27 Sep 2013 08:53:52 +0000 (11:53 +0300)]
bootstrap: return to current branch

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoMove RepoManifest to gbp
Markus Lehtonen [Fri, 27 Sep 2013 08:34:26 +0000 (11:34 +0300)]
Move RepoManifest to gbp

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: implement test repo manifest generation
Markus Lehtonen [Fri, 20 Sep 2013 12:16:33 +0000 (15:16 +0300)]
bootstrap: implement test repo manifest generation

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd dummy orig archives for import_orig testing
Markus Lehtonen [Tue, 27 Aug 2013 16:17:48 +0000 (19:17 +0300)]
Add dummy orig archives for import_orig testing

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: support silent building
Markus Lehtonen [Tue, 27 Aug 2013 15:31:08 +0000 (18:31 +0300)]
bootstrap: support silent building

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: Support hooks
Markus Lehtonen [Tue, 27 Aug 2013 15:14:59 +0000 (18:14 +0300)]
bootstrap: Support hooks

Initial support for per-branch hooks. Currently only post-build hook is
supported.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd yet another source rpm
Markus Lehtonen [Tue, 27 Aug 2013 14:24:53 +0000 (17:24 +0300)]
Add yet another source rpm

This srpm has auto-generated patches.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agobootstrap: create orig tarballs
Markus Lehtonen [Tue, 27 Aug 2013 13:02:44 +0000 (16:02 +0300)]
bootstrap: create orig tarballs

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd bootstrap.py for re-creating and updating the testdata
Markus Lehtonen [Mon, 26 Aug 2013 15:49:10 +0000 (18:49 +0300)]
Add bootstrap.py for re-creating and updating the testdata

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
11 years agoAdd new srpm to test compressed patches.
Markus Lehtonen [Mon, 20 May 2013 07:36:20 +0000 (10:36 +0300)]
Add new srpm to test compressed patches.

Enables testing of importing gzip and bzip2 compressed patches.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoUpdate gbp-test2 to contain a patch in git email format
Markus Lehtonen [Tue, 15 Jan 2013 12:49:00 +0000 (14:49 +0200)]
Update gbp-test2 to contain a patch in git email format

For testing author name and date parsing of patch-import.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoChange srpms to reflect the corrected patch number handling
Markus Lehtonen [Fri, 4 Jan 2013 16:36:00 +0000 (18:36 +0200)]
Change srpms to reflect the corrected patch number handling

GBP now treats 'Patch:' as patch number -1, instead of 0.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoUpdate gbp-test2 to have multiple specs and patch with URL
Markus Lehtonen [Wed, 9 Jan 2013 12:39:20 +0000 (14:39 +0200)]
Update gbp-test2 to have multiple specs and patch with URL

To test newest fixes in import-srpm.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoAdd dummy test source rpms
Markus Lehtonen [Tue, 6 Nov 2012 08:27:23 +0000 (10:27 +0200)]
Add dummy test source rpms

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoAdd README
Markus Lehtonen [Tue, 6 Nov 2012 08:24:50 +0000 (10:24 +0200)]
Add README

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
12 years agoRepository initialization
Markus Lehtonen [Tue, 6 Nov 2012 08:22:55 +0000 (10:22 +0200)]
Repository initialization

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>