#!/bin/bash
set -e

pkg=bcbio-gff
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cp /usr/share/doc/python3-${pkg}/examples/* $AUTOPKGTEST_TMP

cd $AUTOPKGTEST_TMP
tar xf GFF.tar.xz
for py in $(py3versions -s 2> /dev/null)
do 
	$py test_GFFSeqIOFeatureAdder.py
done
