#!/bin/sh
# autopkgtest check: Build and run a program against libmseed, to verify that the
# headers and pkg-config file are installed correctly

set -e

cp /usr/share/doc/libmseed-doc/example/Makefile .
cp /usr/share/doc/libmseed-doc/example/msrepack.c.gz .
gunzip msrepack.c.gz

make msrepack

[ -x msrepack ]

./msrepack -o output.mseed test.mseed 2>&1


