File: wcslib-test-Fortran

package info (click to toggle)
wcslib 8.5%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,180 kB
  • sloc: ansic: 39,317; lex: 9,461; fortran: 6,826; sh: 3,371; f90: 815; sed: 497; pascal: 204; makefile: 18
file content (29 lines) | stat: -rwxr-xr-x 620 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/sh

set -e

if [ "$(uname -m)" = "ppc64le" ] ; then
    echo "Skipping in ppc64el machines"
    exit 0
fi

cp Fortran/test/* C/test/*.keyrec $AUTOPKGTEST_TMP/
cd $AUTOPKGTEST_TMP/

# Create FITS files for tests
for f in *.keyrec; do
    fits=`echo $f | sed s/.keyrec/.fits/`
    tofits < $f > $fits
done

# wcslib related tests only
TESTS="tlin tdis1 tdis2 tlog tprj1 tsph tspx ttab1 twcs twcssub tpih1 \
       tfitshdr twcsfix"

# Run test that need compiling programs
for t in $TESTS ; do
    gfortran -O2 -std=legacy -I. -I/usr/include/wcslib -o $t $t.f -lwcs -lm
    echo +++++ Test: $t +++++
    ./$t
done