On Wed, Feb 17, 2016 at 05:56:31PM +1100, Ben Finney wrote:
> On 20-Oct-2015, Guido Günther wrote:
> > A testcase using e.g. tests/component/deb/test_buildpackage.py
> > to make sure it doesn't get broken again would be welcome too.
> 
> I am trying to build a test case for this, but there does npt seem to
> be a good way to add a “non-native package using overlay” scenario in
> that module. I don't even see a “non-native package” starting point.

Check the dsc and import-orig component tests. They import a non native
package.

> My attempts began with refactoring the ‘deb.TestBuildpackage’ class
> <URL:https://notabug.org/bignose/debian_git-buildpackage/src/test-suite-refactor>,
> to extract common elements of each test case. Please feel free to
> merge those changes.
> 
> I was not able to figure out how to make a test case function
> ‘TestBuildpackage.test_non_native_buildpackage’ that would correctly
> test that scenario. Lacking that, I don't even know how to begin
> making a similar scenario ‘test_non_native_with_overlay_buildpackage’.

This is like test_debian_buildpackage but imports hello-debian instead
of git-buildpackage. I've pushed a patch that shows this:

    
https://git.sigxcpu.org/cgit/git-buildpackage/commit/?id=3a84c1132d642190eaab686c2600ae661ad6062d

Cheers,
 -- Guido
_______________________________________________
git-buildpackage mailing list
git-buildpackage@lists.sigxcpu.org
http://lists.sigxcpu.org/mailman/listinfo/git-buildpackage

Reply via email to