#!/bin/sh -ex

pkg=khmer
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
fi
cd "$AUTOPKGTEST_TMP"

c++ -o test-prog-static -static -std=c++11 \
	$(pkg-config oxli --static --cflags) -I/usr/include/oxli/smhasher \
	/usr/share/doc/khmer-common/test-compile.cc \
	$(pkg-config oxli --static --libs)

./test-prog-static

rm -f test-prog-*
