Test suite best practices ?
Hi folks,
Are there any "best practices" on how to handle test suite in Debian ?
Currently the best way seems to use the automake's testsuite, and call
dh_auto_test after dh_auto_build - but it generally needs some hacking
wrt. library and binary pathes - ie. something ugly like:
# Makefile.am
TESTS_ENVIRONMENT =
LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$$LD_LIBRARY_PATH
TESTS_ENVIRONMENT += PATH=$(top_builddir)/src/.libs:$$PATH
TESTS = *.test
There might be better ways (and more portable - are we sure that
LD_LIBRARY_PATH is awlays the right one ?) ?
Regards,
Xavier
Reply to: