However, what I'm doing to run the autopkg test - which I would call the
wimp method - is just
cd debian/tests
sh run-nose-tests
This runs the test on the local machine and not in a chroot - so it might
run successfully but fail in a chroot. But if this runs its a good sign.
Unfortunately I get:
$ sh run-nose-tests
In file included from /tmp/python-pysam-test.YwEQqG/_compile_test.c:243:0:
/usr/lib/python2.7/dist-packages/pysam/htslib_util.h:12:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int hts_get_verbosity();
^
E.
======================================================================
ERROR: testCount (compile_test.BAMTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/python-pysam-test.YwEQqG/compile_test.py", line 32, in testCount
pysam.Samfile(self.input_filename))
File "pysam/calignmentfile.pyx", line 311, in pysam.calignmentfile.AlignmentFile.__cinit__ (pysam/calignmentfile.c:4943)
File "pysam/calignmentfile.pyx", line 353, in pysam.calignmentfile.AlignmentFile._open (pysam/calignmentfile.c:5660)
File "pysam/calignmentfile.pyx", line 480, in pysam.calignmentfile.AlignmentFile._open (pysam/calignmentfile.c:6923)
IOError: file `pysam_data/ex1.bam` not found
----------------------------------------------------------------------
Ran 2 tests in 0.727s
FAILED (errors=1)