#!/bin/sh -e

pkg=microbiomeutil-data
if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/examples/* .
find . -name "*.gz" -exec gunzip \{\} \;
for runtest in `find . -mindepth 1 -maxdepth 1 -type d` ; do
    cd $runtest && ./runMe.sh && cd ..
done
