#!/bin/sh
# Compile and run upstream's example program. Assumes $AUTOPKGTEST_TMP is set,
# see /usr/share/doc/autopkgtest/README.package-tests.gz
set -e

# Copy the example program to $AUTOPKGTEST_TMP and work from there.
cp example.c "$AUTOPKGTEST_TMP"/
cd "$AUTOPKGTEST_TMP"

gcc -o example example.c -lrscode
./example
