#!/bin/sh -e

if nvidia-detect | grep -q "No NVIDIA GPU detected."; then
    exit 77
fi

nvidia-detect

for py in $(py3versions -s 2> /dev/null); do
    cd "$AUTOPKGTEST_TMP"
    echo "Testing with $py:"
    $py test/test_all.py
done
