File: non-default-params-test

package info (click to toggle)
conservation-code 20110309.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 608 kB
  • sloc: python: 512; sh: 24; makefile: 21
file content (26 lines) | stat: -rw-r--r-- 845 bytes parent folder | download
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
26
#!/bin/sh
# autopkgtest check: build and run with default test data, taken from package's readme.txt
# Author: Tatiana Malygina <merlettaia@gmail.com>

set -e

pkg=conservation-code

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/* .

echo "Checking alignment matrix file usage"
#following call goes ok with valid matrix file
score_conservation -m /usr/share/${pkg}/matrix/blosum100.bla -o alignment.scores 2plc__hssp-filtered.aln
[ -e alignment.scores ]

echo "Checking distribution file usage"
#with valid distribution file name
score_conservation -d /usr/share/${pkg}/distributions/swissprot.distribution -o alignment2.scores 2plc__hssp-filtered.aln
[ -e alignment2.scores ]