Debian Codegraph @

debian/tests/run-unit-tests

raw
1 #!/bin/bash
2 set -e
3
4 pkg=norsnet
5
6 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
7 AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
8 # Double quote below to expand the temporary directory variable now versus
9 # later is on purpose.
10 # shellcheck disable=SC2064
11 # trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
12 fi
13
14 cp /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"
15
16 cd "${AUTOPKGTEST_TMP}"
17 gunzip -r *
18
19 # Just for debugging
20 set -x
21
22 # Run the shipped example data files
23 for (( n=1; n<=2; n++))
24 do
25 norsnet cad23.f cad23-fil.rdbProf cad23-fil.hssp cad23.norsnet cad23 cad23.profbval $n debug
26 done
27
28
29
30