File: testprog

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 (17 lines) | stat: -rwxr-xr-x 315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

CFLAGS="-O2 -Wall $(pkg-config --cflags cfitsio)"
LDFLAGS=$(pkg-config --libs cfitsio)

cp utilities/testprog.c $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP

cc $CFLAGS -o testprog.o -c testprog.c 2>&1
cc -o testprog testprog.o $LDFLAGS 2>&1

echo "build: OK"
[ -x ./testprog ]
./testprog
echo "run: OK"