File: upstream-tests

package info (click to toggle)
python-validate-pyproject 0.24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,340 kB
  • sloc: python: 3,053; makefile: 46; sh: 25
file content (33 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

set -e -u

cp -a tests "${AUTOPKGTEST_TMP}"

PYTEST_OPTIONS="-k \
	not test_cache_open_url \
and not test_examples_api \
and not test_examples_cli \
and not test_invalid_examples_api \
and not test_invalid_examples_cli \
and not test_invalid_pep639_license_expression \
"

for py3vers in $(py3versions -s); do
    echo
    echo "***************************"
    echo "*** Testing with ${py3vers}"
    echo "***************************"
    echo
    cd ${AUTOPKGTEST_TMP} && \
        echo -e "Content of current working folder:\n" && \
        ls -la && \
        echo -e "Running tests...\n" && \
        "${py3vers}" -m pytest -sv tests "${PYTEST_OPTIONS}"  && \
        rm -rf .pytest_cache || exit 1
done

echo

exit 0