Testsuite needs to run in pbuilder.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WebApps: unity-firefox-extension |
Confirmed
|
High
|
Unassigned |
Bug Description
Hello,
Ken VanDine and I are responsible for enabling autolanding of packages in raring, but before we can do this, we need to ensure that they have good test suites.
In this package I can see that there's a directory called tests and another called html-tests. It's good to see that the tests exist, but we need to set them up to run in debian/rules, so that pbuilder will run the tests, and prevent broken code from getting shipped directly to users.
This means:
1. Tests must be *thoroughly* mocked, so that they don't depend on any technology that won't be present inside a pbuilder environment
2. Tests need to actually be run.
I set up debian/rules to run 'sh ./tests/run.sh' during the build and I got the following error:
make[1]: Leaving directory `/home/
debian/rules override_
make[1]: Entering directory `/home/
sh ./tests/run.sh
xargs: mozmill: No such file or directory
make[1]: *** [override_
make[1]: Leaving directory `/home/
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -D -us -uc failed
bzr: ERROR: The build failed.
So if somebody could help me fix that up we could get this auto-landing, that would be super. Thanks! ;-)
Related branches
Changed in unity-firefox-extension: | |
status: | New → Confirmed |
Changed in unity-firefox-extension: | |
importance: | Undecided → High |
Hi Robert.
mozmill needs to be installed via python-pip:
# pip install mozmill
However, this are functional tests, not ment to be executed during the autolanding (per Product Strategy rules, only
continuous integration/
unit tests are executed).