Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/bash
2 set -e
3
4 pkg=norsp
5
6 export LC_ALL=C.UTF-8
7 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
8 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
9 # Double quote below to expand the temporary directory variable now versus
10 # later is on purpose.
11 # shellcheck disable=SC2064
12 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
13 fi
14
15 cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
16
17 cd "${AUTOPKGTEST_TMP}"
18
19 gunzip -r *
20 #do_stuff_to_test_package#
21 norsp -fileSeq query.fasta -fileHssp query.hssp -filePhd query.prof -filePhdHtm query.phdHtm -fileCoils query.coils -o output.nors
22 diff -u output.nors query.nors
23 diff -u output.nors_sum query.sumNors
24 echo 'PASSED'