File: run-unit-test

package info (click to toggle)
lucy 1.20-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,832 kB
  • sloc: ansic: 4,214; makefile: 30; awk: 21; sh: 21
file content (29 lines) | stat: -rw-r--r-- 815 bytes parent folder | download | duplicates (2)
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
#!/bin/bash
set -e

pkg=lucy

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'
lucy atie.seq atie.qul atie.2nd -output test1.seq test1.qul
rm -f ./test1.*
echo '---------------Passed!----------------------------'

echo 'Test - 2'
lucy ARMTM40TR.seq ARMTM40TR.qul -output test2.seq test2.qul
rm -f ./test2.*
echo '---------------Passed!----------------------------'

echo 'Test - 3'
lucy -v PUC19 PUC19splice atie.seq atie.qul atie.2nd -debug lucy.info -vector pSPORT1vector pSPORT1splice -output test3.seq test3.qul
rm -f ./test3.*
echo '---------------Passed!----------------------------'