File: wcslib-test-Fortran

package info (click to toggle)
wcslib 5.16-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,488 kB
  • ctags: 15,924
  • sloc: ansic: 30,968; lex: 7,902; fortran: 6,608; sh: 3,572; sed: 447; pascal: 153; makefile: 12
file content (25 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

set -e

cp Fortran/test/* C/test/tofits.c C/test/*.keyrec $ADTTMP/
cd $ADTTMP/

# Create FITS files for tests
gcc -O2 -o tofits tofits.c
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 -I. -I/usr/include/wcslib -o $t $t.f -lwcs -lm
    echo +++++ Test: $t +++++
    ./$t
done