python-rufus: Help needed to run test suite at package build time
Hi,
I try to package python-ruffus on behalf of the Debian Med team at
git://anonscm.debian.org/debian-med/python-ruffus.git
Unfortunately I have trouble running the test suite. I tried two
ways to run it:
override_dh_auto_test:
### No idea why this fails :-(
# LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; cd ruffus/test; for tst in test*.py ; do {interpreter} $$tst ; done'
### Try find ...
LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; cd ruffus/test; find . -type f -name "test*.py" -exec {interpreter} \{\} \; ; done'
Both versions work on command line but when trying to build the package
I get:
...
make[1]: Entering directory '/tmp/buildd/python-ruffus-2.5+dfsg'
LC_ALL=C.UTF-8 dh_auto_test -- --test --system=custom --test-args='set -e; cd ruffus/test; find . -type f -name "test*.py" -exec python \{\} \; ; done'
E: pybuild pybuild:256: test: plugin custom failed with: '\\'
dh_auto_test: pybuild --test -i python{version} -p 2.7 --test --system=custom --test-args=set -e; cd ruffus/test; find . -type f -name "test*.py" -exec python \{\} \; ; done --dir . returned exit code 13
debian/rules:26: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 13
I guess this is because of the replacement of {} in the latter case but
also the first version with the for loop does not work. I'm tempted to
work around all this by using a script wrapping up the tests. However,
I wonder whether there is some solution which might work also this way.
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: