File: run-unit-test

package info (click to toggle)
elph 1.0.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 324 kB
  • sloc: cpp: 4,142; makefile: 43; sh: 18
file content (25 lines) | stat: -rw-r--r-- 544 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
#!/bin/bash
set -e

pkg=elph
PACKAGE=igor

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/${PACKAGE}/examples/* -a "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
gunzip -r *

echo 'Test 1'
elph genomicVs_with_primers.fasta genomicDs.fasta LEN=5 -s974 -n3
echo '================================'
echo

echo 'Test 2'
elph genomicJs_all_curated.fasta LEN=2 -p15 -b
echo '================================'
echo 'PASS'