Merge lp://qastaging/~fgimenez/snapcraft/build-examples-test into lp://qastaging/~snappy-dev/snapcraft/core

Proposed by Federico Gimenez
Status: Merged
Approved by: Leo Arias
Approved revision: 178
Merged at revision: 197
Proposed branch: lp://qastaging/~fgimenez/snapcraft/build-examples-test
Merge into: lp://qastaging/~snappy-dev/snapcraft/core
Diff against target: 318 lines (+153/-61)
13 files modified
debian/control (+11/-0)
debian/rules (+3/-0)
debian/snapcraft-examples.install (+1/-0)
debian/snapcraft.install (+3/-0)
debian/source/options (+0/-5)
debian/tests/control (+3/-2)
debian/tests/runexamples (+2/-0)
debian/tests/runtests (+2/-0)
examples/downloader-with-wiki-parts/snapcraft.yaml (+1/-0)
integration-tests/runtests.sh (+44/-18)
integration-tests/units/examples.pxu (+10/-0)
integration-tests/units/testplans.pxu (+6/-1)
runtests.sh (+67/-35)
To merge this branch: bzr merge lp://qastaging/~fgimenez/snapcraft/build-examples-test
Reviewer Review Type Date Requested Status
Leo Arias (community) Needs Fixing
Daniel Holbach (community) Approve
Sergio Schvezov Needs Fixing
Review via email: mp+270798@code.qastaging.launchpad.net

Commit message

plainbox test for building the examples

Description of the change

plainbox test for building the examples

To post a comment you must log in.
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Thanks, this is a good start, looping over everything in examples will do the initial trick. In the future I will split this out a bit and use something a bit more custom for each checking if stage and snap have the right set of files for example.

The reason I set to needs fixing though is because of 'run_examples_tests.sh', it seems there is too much duplicate code here and in runtests.sh, it also introduces one more driver for them.

I'd like to see this at least driven by an envvar or command arg

./runtests.sh all (default)
./runtests.sh unit
./runtest.sh plainbox
./runtest.sh plainbox examples|normal

Thoughts?

review: Needs Fixing
Revision history for this message
Leo Arias (elopio) wrote :

I agree with what sergio says. I'd also like to see snapcraft run on each example, and check that it does what it's supposed to. That's way more complex and I have no idea yet how to do it, so +1 to this branch that gets all started.

fwiw, I did a little refactor in here to support dep8:
https://code.launchpad.net/~elopio/snapcraft/dep8/+merge/266998

You could put the script inside examples dir.

Thanks Federico.

Revision history for this message
Federico Gimenez (fgimenez) wrote :

Thanks a lot Sergio and Leo for your comments.

With the latest changes it can be invoked with the options suggested by Sergio, by default it only runs the normal test plan in plainbox, to run the examples test plan you have to be explicit:

./runtests.sh plainbox examples

Let me know what do you think. Leo, your dep8 work is already merged, right?

Revision history for this message
Daniel Holbach (dholbach) wrote :

I think the following changes would be good: http://pastebin.ubuntu.com/12448355/

Unfortunately does the runexamples test still explode: http://pastebin.ubuntu.com/12448397/

Revision history for this message
Daniel Holbach (dholbach) wrote :

And yep, the dep8 branch is in trunk.

Revision history for this message
Federico Gimenez (fgimenez) wrote :

Back to wip, autopkgtest not yet working

Revision history for this message
Federico Gimenez (fgimenez) wrote :

It should be fixed now, the examples folder was not being added to the deb and because of that was not available in the testbed, let me know if it works for you.

172. By Federico Gimenez

added missing $

Revision history for this message
Daniel Holbach (dholbach) wrote :

Great work.

review: Approve
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

As discussed during the standup, can we have a snapcraft-examples binary package that depends on the snapcraft binary package?

Revision history for this message
Leo Arias (elopio) wrote :

+Tests: runtests
+ runexamples

I would call them integration-tests and example-tests, or something like that.

I ran the tests, and they work. Got one failure, which is awesome. Thanks Federico!

Waiting for the examples package to approve.

Revision history for this message
Daniel Holbach (dholbach) wrote :
173. By Federico Gimenez

merged trunk

174. By Federico Gimenez

merged lp:~dholbach/snapcraft/snapcraft-example

175. By Federico Gimenez

fixed paths to work with the snappy-examples package

176. By Federico Gimenez

merged trunk

177. By Federico Gimenez

Removed libssl-dev dependency

Revision history for this message
Daniel Holbach (dholbach) wrote :

Can you apply the following change?

== modified file 'examples/downloader-with-wiki-parts/snapcraft.yaml'
--- examples/downloader-with-wiki-parts/snapcraft.yaml 2015-09-21 05:04:31 +0000
+++ examples/downloader-with-wiki-parts/snapcraft.yaml 2015-09-22 08:11:03 +0000
@@ -14,3 +14,4 @@
         source: .
         after:
             - curl
+build-packages: [libssl-dev]

review: Needs Fixing
178. By Federico Gimenez

added build dependency on libssl-dev to downloader-withwiki-parts

Revision history for this message
Federico Gimenez (fgimenez) wrote :

@Daniel, thanks, done :)

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks a lot! Good work!

review: Approve
Revision history for this message
Leo Arias (elopio) wrote :

There is one lintian error. Fixed with:
http://paste.ubuntu.com/12523307/

review: Needs Fixing
Revision history for this message
Leo Arias (elopio) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches