#!/bin/sh
set -e

export PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe

cp -r tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"/tests

for py in $(py3versions -s 2>/dev/null); do
    echo "\n=== Testing scotchpy with $py ==="
    $py -mpytest -v --with-mpi
done
