aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
Commit message (Collapse)AuthorAge
* Remove all other log handlers when capturing logsGuido Günther2014-07-28
| | | | This avoids spurious error messages during test runs.
* Pass --no-pristine-tar to SRPM compnent testsGuido Günther2014-07-24
| | | | to avoid pristine-tar showing up in the matched branches
* Introduce git-import-srpm toolMarkus Lehtonen2014-07-24
| | | | | | | | 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>
* Introduce rpm helpersMarkus Lehtonen2014-07-24
| | | | | | | | | | | Implements a new gbp.rpm module that contains functionality for e.g. parsing and editing spec files, reading src.rpm files rpm-specific packaging policy etc. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com> Signed-off-by: Huang Hao <hao.h.huang@intel.com>
* Fix comitter vs committer typosGuido Günther2014-05-16
| | | | | Thanks: Sandro Tosi Closes: #748339
* config: add decorator to add_option_* functionsGuido Günther2014-04-03
| | | | | This allows us to build an internal list of valid options and print these.
* Remove tests now covered by 18_test_ConfigGuido Günther2014-04-02
|
* Add minimal 'config' commandGuido Günther2014-04-01
| | | | | | This only allows to print single config values so far. Closes: #733470
* Test option parser fallbacks more thoroughlyGuido Günther2014-04-01
| | | | | | revealing another bug where we overwrote parsed values with defaults Closes: #733759
* ComponentTestBase: use regex matching in log checkingMarkus Lehtonen2014-03-27
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Use a temporary directoryGuido Günther2014-03-27
| | | | This avoids file name collisions and weired files in the working copy.
* tests: more robust check for the default urgency level of dchMarkus Lehtonen2014-03-27
| | | | | | | | The dch tool might not report it's version if it is incorrectly compiled. Create a dummy changelog and parse it "manually" to determine the default urgency level. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* import_dsc: Create missing debian branch with --create-missing-branchesGuido Günther2014-02-23
| | | | Closes: #739888
* config: Don't pull in config defaults twiceGuido Günther2014-02-19
| | | | | | This would otherwise overwrite values set in the legacy config sections. Closes: #733759
* tests: adapt dch tests for older devscriptsMarkus Lehtonen2014-01-07
| | | | | | | Determine the default urgency level by determining the version number of the dch tool from command line. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Adjust test cases to newer devscriptsGuido Günther2013-12-17
| | | | Closes: #732384
* pq: rewrite patch export functionalityMarkus Lehtonen2013-10-31
| | | | | | | | | | | | | | | Use our own function for constructing the patch files instead of using the format-patch command of git. This way, we get the desired output format directly, without the need for the error-prone "format-patch, parse patch files, mangle and re-write patch files" cycle. Also, fix patch naming in patch generation when '--no-patch-numbers' is used. Previously, multiple commits with the same subject resulted in multiple patches having the same filename. This lead into broken series with missing patches as patch files were overwritten by the topmost commit. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: remove unused import in submodule testsMarkus Lehtonen2013-09-10
| | | | | Change-Id: Ida67f9640624a92ffc1afd90dc33efe01b38db5c Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: upper case global variables in submodule testsMarkus Lehtonen2013-09-10
| | | | | | Prevent some confusing name clashes. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: add some docstrings to git submodule testsMarkus Lehtonen2013-09-10
| | | | | Change-Id: I0ba9e6b59e2a819b5cde1be6fbb53b8ecbb67025 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: use eq_ and ok_ from nose tools in submodule testsMarkus Lehtonen2013-09-10
| | | | | | | For consistency and better assert error messages. Change-Id: Ie6502daac6cee0176db5f099b91803292c17ceea Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* tests: add test for archiving without git submodulesMarkus Lehtonen2013-09-10
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* git: new class and method for remote repositoriesMarkus Lehtonen2013-09-10
| | | | | | | | | | | Add a new GitRemote class for representing git remote repositories. The initial, very limited, version only contains information about the fetch and push URLs of the remote repository. Also, add a new GitRepository.get_remotes() method for getting remote repositories as instances of the new GitRemote class. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.pull: Add 'all_remotes' optionLingchaox Xin2013-09-10
| | | | | | | Also changes the method to utilize the GitArgs class. Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.push: Add 'tags' optionLingchaox Xin2013-09-10
| | | | | Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.push: Add 'force' optionLingchaox Xin2013-09-10
| | | | | Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.list_tree: add 'paths' optionMarkus Lehtonen2013-09-10
| | | | | Change-Id: I9331fec6fcd0e58dad7cb4a571a683e09ce08011 Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* ComponentTestBase: use eq_() ok_() from nose.toolsMarkus Lehtonen2013-09-05
| | | | | | For better assert messages. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.diff: add 'text' optionMarkus Lehtonen2013-09-05
| | | | | | | For generating textual diffs. Useful for Pq - for example, the 'patch' utility does not support git binary diffs. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository: Add clean() methodMarkus Lehtonen2013-09-04
| | | | | Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.fetch: Add 'all_remotes' optionLingchaox Xin2013-09-04
| | | | | Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.fetch: Add 'refspec' optionLingchaox Xin2013-09-04
| | | | | Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* GitRepository.describe: add 'tags' and 'extra-match' optionsLingchaox Xin2013-09-04
| | | | | Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* ComponentTestBase: keep tmpdir if GBP_TESTS_NOCLEAN is in envMarkus Lehtonen2013-09-04
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* ComponentTestBase: fix env restore in teardownMarkus Lehtonen2013-09-04
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* ComponentTestBase: more verbose output in case of branch mismatchMarkus Lehtonen2013-09-04
| | | | Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Use open() instead of file()Guido Günther2013-08-28
| | | | since the later doesn't exist in python3
* dch: make automatic adding of new sections more robustGuido Günther2013-08-21
| | | | | | | This code that determined if we found a snapshot header was obuscated by the code that determines the commits to add. Split those and better document their purpose. Also always return the commit to start from so we don't need to repeat the logic in the uper levels.
* Move MockedChangelog to testutilsGuido Günther2013-08-21
| | | | | and allow to specify the content so we can reuse it for other dch tests.
* GitRepository.set_upstream_branch: Newer git wants a valid remote repo entryGuido Günther2013-07-04
| | | | | | so set one in the tests before trying to set the upstream branch. Found with git 1.8.3.2
* Test succesful import tooGuido Günther2013-06-30
| | | | and make sure we don't spew to stderr during this test
* import-dsc: print filename instead of object nameGuido Günther2013-06-26
|
* Consistently call gbp the supercommandGuido Günther2013-06-26
| | | | and robustify against invalid modules names.
* GbpOptionParser: add test for 'filter' option handlingGuido Günther2013-06-19
|
* GbpOptionParser: Make sure we parse the old config sectionsGuido Günther2013-06-19
| | | | | For backward compatibility between {gbp,git}-<subcommand> and "gbp <subcommand>" make sure we parse the former sections if using the later.
* Add wrapper for all gbp commandsGuido Günther2013-06-18
| | | | | So like git you can now use gbp <command> instead of git-<command> or gbp-<command>. The manpages and docs aren't adjusted yet.
* GitRepository.get_subject: use get_commit_infoGuido Günther2013-06-11
| | | | | This kills another _git_getoutput. Also deprecate the method since we don't need to special case the subject.
* buildpackage: use get_commit_info() instead of get_subject()Markus Lehtonen2013-06-11
| | | | | | | Utilize the get_commit_info() method of GitRepository instead of the deprecated get_subject(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
* Remove unused importsGuido Günther2013-06-11
|
* GitRepository/get_commit_info: add patchname to infoMarkus Lehtonen2013-06-06
| | | | | | | | Add a new 'patchname' field to the information returned by get_commit_info. That is, the subject in a sanitized format, similar to what git-format-patch uses. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>