Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/sh
2 # autopkgtest check: build and run with default test data
3 # Author: Tatiana Malygina <[email protected]>
4
5 set -e
6
7 pkg=metastudent
8
9 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
10 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
11 trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
12 fi
13
14 cd $AUTOPKGTEST_TMP
15
16 cp -a /usr/share/doc/${pkg}/examples/* .
17 find . -type f -name "*.gz" -exec gunzip \{\} \;
18 for lnk in `find . -type l -name "*.gz"` ; do
19 ln -s `basename $(readlink $lnk) .gz` `echo $lnk | sed 's/\.gz$//'`
20 rm $lnk
21 done
22
23 # call example from man:
24 metastudent -i test.fasta -o test.result.new --temp-dir=$AUTOPKGTEST_TMP
25 [ -z $(cmp -s test.result.BPO.txt test.result.new.BPO.txt) ]
26 [ -z $(cmp -s test.result.MFO.txt test.result.new.MFO.txt) ]
27 [ -z $(cmp -s test.result.CCO.txt test.result.new.CCO.txt) ]