File: test-example

package info (click to toggle)
tantan 13-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 492 kB
  • ctags: 268
  • sloc: cpp: 1,275; ansic: 639; sh: 50; makefile: 45
file content (27 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download | duplicates (5)
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
27
#!/bin/sh
# autopkgtest check: Run small test data through tantan
# Author: Sascha Steinbiss <sascha@steinbiss.name>
set -e

ORIGDIR=$(pwd)
DATADIR=$ORIGDIR/debian/tests/
WORKDIR=$(mktemp -d)

trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR

tantan < $DATADIR/nuc.fasta > 1
tantan $DATADIR/nuc.fasta > 2

[ -s 1 ]
[ -s 2 ]

diff 1 2

tantan -p < $DATADIR/prot.fasta > 1
tantan -p $DATADIR/prot.fasta > 2

[ -s 1 ]
[ -s 2 ]

diff 1 2