Merge lp:~fgimenez/snapcraft/build-examples-test into lp:~snappy-dev/snapcraft/core
| Status: | Merged |
|---|---|
| Approved by: | Leo Arias on 2015-09-22 |
| Approved revision: | 178 |
| Merged at revision: | 197 |
| Proposed branch: | lp:~fgimenez/snapcraft/build-examples-test |
| Merge into: | lp:~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:~fgimenez/snapcraft/build-examples-test |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Leo Arias | Needs Fixing on 2015-09-22 | ||
| Daniel Holbach (community) | Approve on 2015-09-22 | ||
| Sergio Schvezov | 2015-09-11 | Needs Fixing on 2015-09-11 | |
|
Review via email:
|
|||
Commit Message
plainbox test for building the examples
Description of the Change
plainbox test for building the examples
| 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:/
You could put the script inside examples dir.
Thanks Federico.
| 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?
| Daniel Holbach (dholbach) wrote : | # |
I think the following changes would be good: http://
Unfortunately does the runexamples test still explode: http://
| Daniel Holbach (dholbach) wrote : | # |
And yep, the dep8 branch is in trunk.
| Federico Gimenez (fgimenez) wrote : | # |
Back to wip, autopkgtest not yet working
| 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 on 2015-09-21
-
added missing $
| Sergio Schvezov (sergiusens) wrote : | # |
As discussed during the standup, can we have a snapcraft-examples binary package that depends on the snapcraft binary package?
| 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.
| Daniel Holbach (dholbach) wrote : | # |
- 173. By Federico Gimenez on 2015-09-21
-
merged trunk
- 174. By Federico Gimenez on 2015-09-22
- 175. By Federico Gimenez on 2015-09-22
-
fixed paths to work with the snappy-examples package
- 176. By Federico Gimenez on 2015-09-22
-
merged trunk
- 177. By Federico Gimenez on 2015-09-22
-
Removed libssl-dev dependency
| Daniel Holbach (dholbach) wrote : | # |
Can you apply the following change?
== modified file 'examples/
--- examples/
+++ examples/
@@ -14,3 +14,4 @@
source: .
after:
- curl
+build-packages: [libssl-dev]
- 178. By Federico Gimenez on 2015-09-22
-
added build dependency on libssl-dev to downloader-
withwiki- parts
| Federico Gimenez (fgimenez) wrote : | # |
@Daniel, thanks, done :)
| Leo Arias (elopio) wrote : | # |
There is one lintian error. Fixed with:
http://
| Leo Arias (elopio) wrote : | # |
Lets land this one, the lintian fix is here: https:/


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?