#!/bin/sh -e

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/python3-pysam-test.XXXXXX`
fi
cd $ADTTMP
cp -ra /usr/share/doc/python-pysam/tests/* $ADTTMP
nosetests3 --nocapture
cd
rm -rf $ADTTMP
