File: run-unit-test

package info (click to toggle)
seqtools 4.44.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,492 kB
  • sloc: cpp: 53,636; sh: 12,232; makefile: 387
file content (43 lines) | stat: -rw-r--r-- 1,183 bytes parent folder | download | duplicates (4)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
set -e

pkg=libgbtools-dev

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

cp /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
gunzip -r *

echo 'Test 1'
timeout 10s blixem -t N chr4_ref_seq.fasta chr4_dna_align.gff || true
echo 'PASS'
echo '=============================================================='

echo 'Test 2'
timeout 10s blixem -t P chr4_ref_seq.fasta chr4_protein_align.gff || true
echo 'PASS'
echo '=============================================================='

echo 'Test 3'
dotter chr4_ref_seq_short.fasta DA730641.fasta -e test3 -w
echo 'PASS'
echo '=============================================================='

echo 'Test 4'
if [ $(dpkg-architecture -qDEB_BUILD_ARCH) = "armhf" ] ; then
  echo 'IGNORED' # see bug #972266
else
  dotter chr4_ref_seq_short.fasta Q9H8G1.fasta -e test4 -r
  echo 'PASS'
fi
echo '=============================================================='

echo 'Test 5'
belvu PF02171_seed.stock -o msf
echo 'PASS'
echo '=============================================================='