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.
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?
Yeah, || true sounds like what I'm after. Might just push that into https://github.com/mapnik/mapnik/blob/master/Makefile
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.
#49 - run tests as part of package builds. Ignore failures. Respect D…
#49 Oh, yes, Makefiles are whitespace sensitive. Whoops
cool, looks like they ran now, but we are missing python-nose and for it looks like mapnik cannot be loaded:
*** Running visual tests...
Traceback (most recent call last):
File "tests/visual_tests/test.py", line 4, in <module>
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: *** [test] Error 1
make: 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:
python-nose as a build dependency (for tests) -refs #49
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.
given that tests are automatically run before install - run the local…
… test target - refs #49
running now, but appears their error return still breaks the build: https://launchpadlibrarian.net/140494479/buildlog_ubuntu-quantal-amd64.mapnik_2.2.0%2Bdev20130523.git.5aecb3c-1~quantal1_FAILEDTOBUILD.txt.gz
python plugin is broken so disable and fix test error return - closes #…