#!/bin/bash
set -e

pkg="vcftools"

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

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

cd $AUTOPKGTEST_TMP;

find . -name "*.gz" -exec gunzip \{\} \;


cd $AUTOPKGTEST_TMP/testsuite;

find /usr/bin -name "*vcf*" -exec ln -s \{\} ./ \;
ls;
/usr/bin/perl ./test.t ;

echo "PASS"
