summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2012-08-22GitRepository: Implement set_upstream_branch and get_upstream_branch methodsEd Bartosh
set_upstream_branch sets upstream branch for the local branch using git branch --set-upstream get_upstream_branch returns info about upstream branches Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2012-08-02Add tests for gbp.deb.{DpkgCompareVersions,DscFile}Guido Günther
2012-08-01Test help output by importing the modulesGuido Günther
so we get correct coverage information for the scripts
2012-08-01Skip tests requiring devscripts if dch is not thereGuido Günther
so tests don't fail on rpm based systems.
2012-07-31Test behavior of gbp.scripts.dch.main().Daniel Dehennin
* tests/11_test_dch_main.py: Test common cases with "--release" and "--snapshot". Try 2 consecutive snapshots to check for merged entries.
2012-07-29GitModifier: add tests for dict interfaceGuido Günther
2012-07-27GitRepository/get_commit_info: add file statusMarkus Lehtonen
Add file status and name to the info returned by the get_commit_info() method. Signed-off-by: Zhang Qiang <qiang.z.zhang@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-27GitRepository/get_commit_info: add committer infoMarkus Lehtonen
Add committer to the info returned by get_commit_info() method. Returns committer name, email and timestamp as a GitModifier object. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-27GitRepository/get_commit_info: add author timestampMarkus Lehtonen
Add author timestamps to the info returned by get_commit_info() method. Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com> Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-27GitModifier: More flexible date handlingGuido Günther
Allow to pass in the date as datetime object, timestamp or git raw date. and allow to retrieve these values. This make constructing GitModifiers from python simpler.
2012-07-24GitRepository: option to ignore untracked in is_clean()Markus Lehtonen
Add an option to ignore untracked files when checking if the repository is clean. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-07-23gbp.git.GitRepository: Add remove_remoteGuido Günther
2012-07-03GitRepository: Make rev_parse's short option an int everywhereGuido Günther
2012-06-30GitRepository: Add test that covers remote branches in has_branch()Guido Günther
2012-06-30GitRepository: return GitModifier object instead of separate fieldsGuido Günther
this make sure the number of return values doesn't stays sane when also returning timestamps and committer information.
2012-06-30GitRepository: make get_commit_info() more robustMarkus Lehtonen
Now uses git-show instead of git-log. This is needed for further enhancements (namely to get name-status for merge commits). Also, use null-character as the field separator which makes parsing more reliable. The method now returns 'body' of the commit message as is, without stripping or splitting to lines. In addition, get_commit_info() now uses GitArgs and _git_inout() instead of the deprecated _git_getoutput(). Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-30tests: test GitRepository.get_commit_info()Guido Günther
2012-06-30PristineTar: move Debian-specific stuff to DebianPristineTarMarkus Lehtonen
Continuation to the PristineTar refactoring, makes the "common" PristineTar independent of DebianPkgPolicy. This commit moves the Debian-specific has_commit() and checkout() methods to DebianPristineTar class and replaces them with more generic functions in the base class. Also, drops the Debian-specific get_commit() method completely, as it was not used outside the PristineTar class itself. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
2012-06-25UpstreamSource: automatically detect package name and versions from directoriesGuido Günther
of the form packagename-<version>
2012-06-25Make TestDir testcase use a newly created directoryGuido Günther
neeeded for the upcoming packagename/version parsing support
2012-05-31gbp.git.repository: add GitRepository.make_treeGuido Günther
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-31gbp.git.repository: Add GitRepository.write_fileGuido Günther
Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-31gbp.git.repository: Add GitRepository.list_treeGuido Günther
2012-05-25Refactor deb helpers: move PristineTar classGuido Günther
Based on a patch by Markus Lehtonen This refactor is preparation to the upcoming rpm support.
2012-05-20Provide minimalist debian/control objectDaniel Dehennin
Closes: #673473 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-15Fix typo in doctest that made epydoc fail.Guido Günther
Git-Dch: Ignore
2012-05-15Add gbp.deb.ChangeLogSectionGuido Günther
to parse package and version out of a changelog section
2012-05-14gbp.git.repository: Add a "git merge-base" wrapperDaniel Dehennin
Closes: #672642 Signed-off-by: Guido Günther <agx@sigxcpu.org>
2012-05-01Refactor deb helpers: move UpstreamSource classMarkus Lehtonen
to pkg base module. This refactor is preparation to the upcoming rpm support.
2012-05-01Refactor deb helpers: introduce PkgPolicy classMarkus Lehtonen
Create a new 'pkg' basemodule, intended to be re-used by the upcoming rpm package helpers. Move some deb functionality to a new pkg.PkgPolicy class, to be used as a base for different package types. Introduces Deb-specific deb.DebianPkgPolicy.
2012-03-15GitModifier: add __getitem__ and keys()Guido Günther
so it can be used as dictonary
2012-03-15deb.changelog: allow to extract author and dateGuido Günther
2012-02-13Make sure we test the built modulesGuido Günther
not the system ones
2012-02-13gbp.config: Add testsGuido Günther
Git-Dch: Ignore
2012-02-12Make pristine_tar testcases pass with older git versionsMarkus Lehtonen
that don't support user-defined output formats (tar filters) in git-archive.
2012-02-09PristineTar: fix links in testcasesGuido Günther
2012-02-07UpstreamSource: turn is_* vars and properties into methodsGuido Günther
since this is more consistent with the other is_* methods in other classes.
2012-01-30PristineTar: add testcaseGuido Günther
2012-01-22PristineTar: move to separate moduleGuido Günther
and make it accessible from GitRepository to group checkout/checkin/lookup.
2012-01-22deb.changelog: add name propertyGuido Günther
2012-01-21GitRepository: add get_obj_type()Markus Lehtonen
get_obj_type() returns the type of a git repository object.
2012-01-15deb: minor refactor of parameters of has_orig()Markus Lehtonen
2012-01-15GitRepository: add rename_branch() methodMarkus Lehtonen
2012-01-12GitRepository: Allow to explicitly fetch tagsGuido Günther
2012-01-10GitRepository.branch_contains: fix misplaced remote parameterGuido Günther
2012-01-10GitRepository: Test find_tag() and add_remote_repo()Guido Günther
2012-01-10GitRepository: Add branch_contains()Guido Günther
to check if a branch contains a specific commit
2012-01-10GitRepository: add verify_tag()Guido Günther
2012-01-10GitRepository: add push() and push_tag()Guido Günther
2012-01-10Use testutils in 09_test_write_tree.pyGuido Günther