Commit 91a82e4f authored by Shayan Doust's avatar Shayan Doust
Browse files

Autopkgtest now works

parent 8b9539ee
Loading
Loading
Loading
Loading

debian/mmseqs2.install

0 → 100644
+1 −0
Original line number Diff line number Diff line
obj-x86_64-linux-gnu/src/test usr/share/doc/mmseqs2
+49 −7
Original line number Diff line number Diff line
#!/bin/bash
set -e

pkg=#PACKAGENAME#
pkg=mmseqs2

if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  # Double quote below to expand the temporary directory variable now versus
  # later is on purpose.
  # shellcheck disable=SC2064
  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi

cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
cp -r /usr/share/doc/${pkg}/test "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"/test
rm -r CMakeFiles cmake_install.cmake
gunzip *
chmod +x *

#do_stuff_to_test_package#
# Notice: Some tests have been excluded as they have user directories hard-coded.
# ... Maybe a patch soon to rectify this.

echo "Invoking test_alignment"
./test_alignment
echo "Invoking test_alignmentraceback"
./test_alignmenttraceback
echo "Invoking test_alp"
./test_alp
echo "Invoking test_backtracetranslator"
./test_backtracetranslator
echo "Invoking test_compositionbias"
./test_compositionbias
echo "Invoking test_kmergenerator"
./test_kmergenerator
echo "Invoking test_kmernucl"
./test_kmernucl
echo "Invoking test_kmerscore"
./test_kmerscore
echo "Invoking test_ksw2"
./test_ksw2
echo "Invoking test_kwaymerge"
./test_kwaymerge
echo "Invoking test_multiplealignment"
./test_multiplealignment
echo "Invoking test_profilealignment"
./test_profilealignment
echo "Invoking test_profilestates"
./test_profilestates
echo "Invoking test_pssm"
./test_pssm
echo "Invoking test_pssmprune"
./test_pssmprune
echo "Invoking test_reducematrix"
./test_reducematrix
echo "Invoking test_sequenceindex"
./test_sequenceindex
echo "Invoking test_tantan"
./test_tantan
echo "Invoking test_translate"
./test_translate
echo "Invoking test_util"
./test_util