#!/bin/sh -e

pkg=mrbayes

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

cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/${pkg}/examples/* .
gunzip -r *

mb avian_ovomucoids.nex
mb codon.nex
mb cynmix.nex
mb finch.nex
mb hymfossil.nex

mb-mpi avian_ovomucoids.nex
mb-mpi codon.nex
mb-mpi cynmix.nex
mb-mpi finch.nex
mb-mpi hymfossil.nex
