Debian Codegraph @

debian/tests/run-unit-tests

raw
1 #!/bin/bash
2 set -e
3
4 pkg=hyphy-common
5
6 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
7 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
8 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
9 fi
10
11 for D in /usr/share/doc/${pkg}/examples/*; do if [ -d "${D}" ]; then cp -a ${D}/* "${AUTOPKGTEST_TMP}"; fi; done
12
13 cd "${AUTOPKGTEST_TMP}"
14
15 gunzip -r *
16
17 # Remove tests that need UI
18 rm -f ReplicateConstraint3.bf F81K81uf_relratio.bf definitions.bf definitions+MLE.bf
19
20 # Check why tests are failing
21 rm -f RelativeRatePBS.bf ParametricBootstrap.bf
22
23 # Remove failing tests on 32-bit architectures
24 if [ $(dpkg-architecture -qDEB_BUILD_ARCH_BITS) = 32 ]
25 then
26 rm -f ExonIntron.bf
27 fi
28
29 # Just for debugging
30 set -x
31
32 for i in *.bf; do
33 [ -f "$i" ] || break
34 hyphy "$i"
35 done
36
37 # Clean up
38 rm -f *messages.log* *errors.log*