#!/bin/sh
set -e -u

# Make the tests use the API specified
export QT_API=$1

# Unfortunately, we can only run this test using a local copy of
# qdarkstyle, as otherwise it attempts to write to
# /usr/lib/python3/dist-packages/qdarkstyle
for py in $(py3versions -s)
do
    echo ">>>> Testing unit tests with $py:"
    PYTHONPATH=. $py -m pytest test/test_sass_compiler.py
done
