File: installation-test

package info (click to toggle)
profisis 1.0.11-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 628 kB
  • sloc: sh: 610; perl: 359; makefile: 26
file content (25 lines) | stat: -rw-r--r-- 751 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
# autopkgtest check: build and run example from man page
# Author: Tatiana Malygina <merlettaia@gmail.com>

set -e

pkg=profisis

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/${pkg}/examples/* .
find . -type f -name "*.gz" -exec gunzip \{\} \;
for lnk in `find . -type l -name "*.gz"` ; do
    ln -s `basename $(readlink $lnk) .gz` `echo $lnk | sed 's/\.gz$//'`
    rm $lnk
done

profisis --fastafile 3A1P_A.fasta --hsspfile 3A1P_A.hssp --rdbproffile 3A1P_A.rdbProf --outfile 3A1P_A-result.profisis
[ -z $(cmp -s 3A1P_A-result.profisis 3A1P_A.profisis) ]
echo "profisis runs as expected"