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

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

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