#!/bin/bash
set -e

# Test for all supported python3 versions so we find out if there are any
# issues with a new python3 version before it is the default version.

cp -a dateparser_scripts tests $AUTOPKGTEST_TMP
# TODO: Find a way to use the installed data
ln -s /usr/lib/python3/dist-packages/dateparser_data $AUTOPKGTEST_TMP

cd $AUTOPKGTEST_TMP

for py3vers in $(py3versions -s); do
    echo "Testing with $py3vers:"
    $py3vers -m pytest ./tests -k 'not test_dateparser_data_integrity and not test_custom_language_detect_fast_text'
done
