File: run-unit-test

package info (click to toggle)
fitsverify 4.20-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 288 kB
  • sloc: ansic: 4,868; sh: 14; makefile: 9
file content (21 lines) | stat: -rw-r--r-- 513 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
#!/bin/bash
set -e

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/lib/eso-midas/*/test/prim/*.fits $AUTOPKGTEST_TMP

cd $AUTOPKGTEST_TMP
gunzip -r *

# These files do not seem to work well, removing these
rm -f dss_test1.fits dss_test2.fits timmi2.fits

echo "Test - Run fitsverify, check for errors"
fitsverify -q -e *.fits
rm -f ./*.fits
echo "================================="
echo "PASS"