#!/bin/sh
set -efu

# We only use the default version instead of all the supported
# versions because python3-libfdt only builds for one Python
# version (see bug #1015271).
pys="$(py3versions -d 2> /dev/null)"

cp -a test "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

for py in $pys; do
  echo "=== $py ==="
  $py test/test-dt-validate.py 2>&1
done
