| 1 |
#!/bin/sh -e |
| 2 |
|
| 3 |
pkg=jellyfish |
| 4 |
if [ "$AUTOPKGTEST_TMP" = "" ] ; then |
| 5 |
AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX` |
| 6 |
trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM |
| 7 |
fi |
| 8 |
|
| 9 |
if [ $(dpkg-architecture -qDEB_HOST_ARCH_BITS) -eq 32 ] ; then |
| 10 |
echo "Test data are to big for 32bit architectures thus no testing is done" |
| 11 |
jellyfish --help |
| 12 |
exit 0 |
| 13 |
fi |
| 14 |
|
| 15 |
cd $AUTOPKGTEST_TMP |
| 16 |
mkdir tests |
| 17 |
cp -a /usr/share/doc/jellyfish-examples/examples/* tests |
| 18 |
mv tests/compat.sh ./ |
| 19 |
sed -i "s#DIR=../bin#DIR=/usr/lib/${pkg}/bin#" compat.sh |
| 20 |
echo "#define HAVE_HTSLIB" > config.h |
| 21 |
tests/generate_sequence.sh |
| 22 |
sh tests/parallel_hashing.sh |
| 23 |
sh tests/merge.sh |
| 24 |
sh tests/bloom_filter.sh |
| 25 |
echo "If you have a *really* powerful machine you can run this *really* big test by prepending" |
| 26 |
echo " 'BIG=1' " |
| 27 |
echo "before the following line" |
| 28 |
sh tests/big.sh || true |
| 29 |
sh tests/subset_hashing.sh |
| 30 |
############################################################################################## |
| 31 |
# It seems the following failures in the following test are planed ... |
| 32 |
# |
| 33 |
# $ jellyfish count -t 2 -g multi_file_fail_cmds -G 2 -C -m 15 -s 2M -o multi_file_fail.jf |
| 34 |
# Command 'false' exited with error status 1 |
| 35 |
# Some generator commands failed |
| 36 |
# $ jellyfish count -t 2 -C -m 15 -s 2M -o multi_file_fail.jf non_existent_sequence.fa |
| 37 |
# terminate called after throwing an instance of 'std::runtime_error' |
| 38 |
# what(): Can't open file 'non_existent_sequence.fa' |
| 39 |
# Aborted |
| 40 |
# |
| 41 |
sh tests/multi_file.sh |
| 42 |
############################################################################################# |
| 43 |
sh tests/bloom_counter.sh |
| 44 |
sh tests/large_key.sh |
| 45 |
sh tests/sam.sh |
| 46 |
bash tests/small_mers.sh |
| 47 |
/usr/lib/jellyfish/bin/test_all |