#!/bin/bash
set -e

CUR_DIR=`pwd`
export LC_ALL=C.UTF-8
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

echo "Test 4 -- Unifrac python tests"
# Trigger the test suite from within unifrac/, to avoid override of the system
# module by the local directory.
cd unifrac
for py in $(py3versions -s 2> /dev/null)
do
	$py -m unittest -v
done
echo "====== PASS ==========="
echo
