summaryrefslogtreecommitdiff
path: root/tests/component
AgeCommit message (Collapse)AuthorFilesLines
2014-11-21buildpackage-rpm: look for remote upstream branchesMarkus Lehtonen1-1/+7
Consider remote branches, too, while looking for the upstream branch when trying to guess if a package is native or not. Change-Id: I3dbbb49816d1d294d81209ea5ab5870e053fd66a Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm tests: add unit tests for buildpackage-rpmMarkus Lehtonen3-7/+756
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm tests: update component test dataMarkus Lehtonen2-49/+49
Adds pq/devel branch and .gitignore file to gbp-test package. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm tests: remove RepoManifest.add_project()Markus Lehtonen1-11/+0
This functionality is moved to the rpm testdata submodule. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: implement --meta-bts optionMarkus Lehtonen1-0/+20
This gives the user the possibility to define what meta tags (in git commit message) git-rpm-ch recognizes as bug tracking system references. Or, makes it possible to disable bts meta tag tracking altogether. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: implement --commit-msg optionMarkus Lehtonen1-0/+11
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: implement --commit optionMarkus Lehtonen1-0/+22
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: don't create pq branch when switchingMarkus Lehtonen1-6/+12
Pq branch must be created with 'import'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement --retain-history optionMarkus Lehtonen1-4/+20
With this option defined gbp tries to preserve the history when converting. That is, for each commit in the old branch create one corresponding commit in the new orphan packaging branch. This works by dumping packaging files and updating patches for each commit. However, empty commits are not generated - these are caused e.g. by changes in files that are ignored by patch-generation. NOTE! Only valid for the 'convert' action. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement --new-packaging-dir cmdline optionMarkus Lehtonen1-4/+19
Used for setting the packaging directory to be used in the new orphan packaging branch. Defaults to --packaging-dir so that the gbp.conf files are more likely to work without modification. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: implement 'convert' subcommandMarkus Lehtonen1-0/+39
The new subcommand is intended to be a one-time-callable command for converting a package to use the "orphan-packaging" development model and git layout (where packaging files are maintained in a separate branch and code development in another branch). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14import-orig-rpm: get archive from spec fileMarkus Lehtonen1-4/+43
Try to get archive path/filename from spec file if no file name is given on the command line. This should make version bumps more straightforward: just update version number in the spec file and run 'git-import-orig-rpm'. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14import-orig-rpm: implement --create-missing-branches optionMarkus Lehtonen1-4/+25
Create the upstream branch if it does not exist. Use the same option name that import-srpm has. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-ch: add unit tests for the command line toolMarkus Lehtonen2-0/+401
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14pq-rpm: add unit tests for the command line toolMarkus Lehtonen3-1/+555
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm-tests: add RepoManifest classMarkus Lehtonen1-0/+38
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14tests: add tests for git-import-orig-rpmMarkus Lehtonen2-0/+562
Basic tests for virtually all features of import-orig-rpm. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14CentOS compatibility: fix testsMarkus Lehtonen1-12/+12
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm: support importing bzip2 compressed patchesMarkus Lehtonen1-0/+14
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14import-srpm: support for patch importMarkus Lehtonen1-18/+24
Adds a new commandline option '--patch-import' for importing patches into the source tree in packaging branch. When enabled, gbp applies and commits all patches (not marked for manual maintenance) into the packaging branch. If this succeeds, it also removes all imported patch files from the packaging directory and the spec file. Currently only supported for non-orphan-packaging. This setting is true by default which should make more sense as the developer wants to do code development in the packaging branch (if he/she selects to use non-orphan packaging). However, patch-import is force-disabled if in bare git repository. We cannot support this, currently. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14log: don't automatically setup gbp-specific loggerMarkus Lehtonen1-0/+2
This makes it nicer to use gbp.* modules (e.g. gbp.git) in other software projects which may have their own logging setup. After this change, just importing gbp.* modules won't forcibly setup gbp-specific logging. However, gbp logging is initialized whenever the gbp.log.getLogger function is called which makes logging in existing gbp commands behave just like before. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14rpm tests: disable one anomalous pylint errorMarkus Lehtonen1-0/+4
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14ComponentTestBase: add dirs argument to _check_repo_state()Markus Lehtonen2-14/+18
Make difference between regular files and directories, eliminating the requirement of listing directories in the file list. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14ComponentTestBase: add ls_tree() methodMarkus Lehtonen1-0/+7
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14ComponentTestBase: add check_files() methodMarkus Lehtonen1-4/+10
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14ComponentTestBase: add a per-class toplevel temp dirMarkus Lehtonen1-1/+8
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-11-14ComponentTestBase: ignore system and user configMarkus Lehtonen1-0/+3
User might have a system and/or user specific gbp config files. Disable these config files so that they don't affect the component tests. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-07-28Remove all other log handlers when capturing logsGuido Günther1-0/+2
This avoids spurious error messages during test runs.
2014-07-24Pass --no-pristine-tar to SRPM compnent testsGuido Günther1-11/+11
to avoid pristine-tar showing up in the matched branches
2014-07-24Introduce git-import-srpm toolMarkus Lehtonen3-0/+373
Initial version of the git-import-srpm: a tool for importing source rpms. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2014-03-27ComponentTestBase: use regex matching in log checkingMarkus Lehtonen1-3/+4
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2014-02-23import_dsc: Create missing debian branch with --create-missing-branchesGuido Günther2-2/+32
Closes: #739888
2013-09-05ComponentTestBase: use eq_() ok_() from nose.toolsMarkus Lehtonen1-9/+9
For better assert messages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04ComponentTestBase: keep tmpdir if GBP_TESTS_NOCLEAN is in envMarkus Lehtonen1-1/+2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04ComponentTestBase: fix env restore in teardownMarkus Lehtonen1-1/+2
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-09-04ComponentTestBase: more verbose output in case of branch mismatchMarkus Lehtonen1-1/+4
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-03-22ComponentTestBase: capability to check files of repoMarkus Lehtonen1-1/+18
Makes it possible to check that the correct files are present in the working copy of the repo. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-03-22tests/component: pylint fixesMarkus Lehtonen1-2/+5
Add module docstring and wrap one overlong line. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2013-03-22ComponentTestBase: close streamhandler when stopping log captureMarkus Lehtonen1-0/+1
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Guido Günther <agx@sigxcpu.org>
2013-01-16Move over import dsc test from external test suiteGuido Günther1-0/+52
Move over the first test from our external (shell based) test suite to the component tests.
2013-01-16Add test data submoduleGuido Günther1-0/+0
2013-01-16Add component test initializationGuido Günther2-0/+186
very heavily based on code by Markus Lehtonen