File: run-unit-test

package info (click to toggle)
pscan-tfbs 1.2.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 272 kB
  • sloc: cpp: 3,611; sh: 17; makefile: 12
file content (25 lines) | stat: -rw-r--r-- 511 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=pscan-tfbs

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'
pscan-tfbs -p sample.fasta -l example_matrix_file.wil
cat sample.short_matrix
echo 'PASS'

echo 'Test 2'
pscan-tfbs -p sample.fasta -l example_matrix_file.wil -N NFY
cat sample.short_matrix
echo 'PASS'