Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/bash
2 set -e
3
4 pkg=jalview
5
6 export LC_ALL=C.UTF-8
7 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
8 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
9 # Double quote below to expand the temporary directory variable now versus
10 # later is on purpose.
11 # shellcheck disable=SC2064
12 trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
13 fi
14
15 TEMP_HOME=$(mktemp -d)
16
17 cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
18
19 cd "${AUTOPKGTEST_TMP}"
20
21 HOME="${TEMP_HOME}" jalview -nodisplay -open uniref50.fa -eps uniref50_out.eps
22 echo "Output generated in eps format in $(pwd)/uniref50_out.eps"
23
24 HOME="${TEMP_HOME}" jalview -nodisplay -open uniref50.fa -html uniref50_out.html
25 echo "Output generated in html format in $(pwd)/uniref50_out.html"
26
27 HOME="${TEMP_HOME}" jalview -nodisplay -open uniref50.fa -png uniref50_out.png
28 echo "Output generated in png format in $(pwd)/uniref50_out.png"