Commit 373e6f25 authored by Saira Hussain's avatar Saira Hussain 💬
Browse files

Add unit test description file

parent 2f526eaa
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e

pkg=hyphy

if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  # Double quote below to expand the temporary directory variable now versus
  # later is on purpose.
  # shellcheck disable=SC2064
  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi

cp -a /usr/share/doc/${pkg}/SimpleAnalyses/* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"

gunzip -r *

# Remove after debugging
set -x

for i in *.bf; do
    [ -f "$i" ] || break
    HYPHYMPI "$i"
done