#!/bin/sh

set -e -u

cp -va LICENSE.txt README.rst tests "$AUTOPKGTEST_TMP"/
cd "$AUTOPKGTEST_TMP"

for py in $(py3versions -s 2>/dev/null); do
       echo "Running testsuite with $py:"
       $py -m pytest \
	       --ignore-glob=tests/test_benchmark* \
	       --ignore=tests/test_proxy_functional.py \
	       --ignore=tests/autobahn/test_autobahn.py \
	       -k "not test_http_response_parser_strict_obs_line_folding and \
		   not test_http_response_parser_strict_headers and \
		   not test_http_response_parser_bad_chunked_strict_py and \
		   not test_http_response_parser_bad_chunked_strict_c" \
	       tests
done
