run tests as part of launchpad builds #49

Closed
springmeyer opened this Issue Apr 27, 2012 · 6 comments

Projects

None yet

2 participants

Owner

But then need to be able to fail without causing launchpad to think the build has failed as we expect some tests to fail currently with older boost.

Member
rcoup commented Sep 26, 2012

Test steps can be added to a debian package build. Some rough notes/links/tips at http://upsilon.cc/~zack/blog/posts/2011/07/Test_Driven_Development_in_Debian/

For skipping, maybe we can setup a skiplist somehow, or add skip code to the tests themselves if boost==old? Or just run tests in a || true way to make it log but ignore?

Owner

Yeah, || true sounds like what I'm after. Might just push that into https://github.com/mapnik/mapnik/blob/master/Makefile

Member
rcoup commented Sep 26, 2012

just throw it into debian/rules, if we use dh_auto_test and override it to always pass, it means people can skip tests in a 'standard' way - eg. DEB_BUILD_OPTIONS=nocheck

make test does everything at the moment right? Let me see if I can get that into the debian/rules file and working.

@rcoup rcoup was assigned Sep 26, 2012
@rcoup rcoup added a commit that referenced this issue Oct 3, 2012
@rcoup rcoup #49 - run tests as part of package builds. Ignore failures. Respect D…
…EB_BUILD_OPTIONS=nocheck
f7a7e45
Owner

cool, looks like they ran now, but we are missing python-nose and for it looks like mapnik cannot be loaded:

(from https://launchpadlibrarian.net/118308404/buildlog_ubuntu-quantal-i386.mapnik_2.2.0%2Bdev20121004.git.4bc6b0c-1~quantal1_BUILDING.txt.gz)

*** Running visual tests...
Traceback (most recent call last):
  File "tests/visual_tests/test.py", line 4, in <module>
    import mapnik
ImportError: No module named mapnik
*** Running C++ tests...
C++ AGG blending: �[1;32m✓ �[0m
tests/cpp_tests/csv_parse_test-bin: error while loading shared libraries: libmapnik.so.2.2: cannot open shared object file: No such file or directory
tests/cpp_tests/exceptions_test-bin: error while loading shared libraries: libmapnik.so.2.2: cannot open shared object file: No such file or directory
tests/cpp_tests/font_registration_test-bin: error while loading shared libraries: libmapnik.so.2.2: cannot open shared object file: No such file or directory
C++ label algorithms: �[1;32m✓ �[0m
C++ parameters: �[1;32m✓ �[0m
*** Running python tests...
Unable to run python tests: the third party 'nose' module is required
To install 'nose' do:
    sudo pip install nose (or on debian systems: apt-get install python-nose
make[2]: *** [test] Error 1
make[2]: Leaving directory `/build/buildd/mapnik-2.2.0+dev20121004.git.4bc6b0c'
dh_auto_test: make -j1 test returned exit code 2
Overall Test Exit Code: 
@springmeyer springmeyer pushed a commit that referenced this issue Oct 4, 2012
Dane Springmeyer python-nose as a build dependency (for tests) -refs #49 0b461dc
Owner

k, added the nose dependency. Looking more at the build log failure, it looks like the problem is (at least) that the tests are being run before mapnik is actually installed.

@springmeyer springmeyer pushed a commit that referenced this issue May 22, 2013
Dane Springmeyer given that tests are automatically run before install - run the local…
… test target - refs #49
26fef98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment