File: run-unit-test

package info (click to toggle)
samblaster 0.1.26-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 316 kB
  • sloc: cpp: 1,655; makefile: 46
file content (27 lines) | stat: -rw-r--r-- 666 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
27
set -e

pkg=samblaster
examplepkg=samtools

export LC_ALL=C.UTF-8
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 -a /usr/share/doc/${examplepkg}/examples/toy.sam "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
mv -f toy.sam read.sam


samblaster -i read.sam -o output --ignoreUnmated
if [ $(dpkg-architecture -qDEB_BUILD_ARCH) = "amd64" ]
then
	echo "fa72ff571503186e9e6f73e92ddda07a  output" > checksums
    md5sum --check checksums
	echo "Expected output and generated output are same: PASS Test"
else
	[ -s "output" ] || exit 1
	echo "PASS Test"
fi