File: fitsverify

package info (click to toggle)
cfitsio 4.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,596 kB
  • sloc: ansic: 107,602; yacc: 5,410; sh: 4,513; fortran: 2,613; lex: 553; makefile: 180
file content (21 lines) | stat: -rwxr-xr-x 529 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
#!/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 image_M12c.fits timmi2.fits

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