# The crate declares no features, so a single test run covers it.
# Keep the version in sync with the packaged crate version.
Test-Command: /usr/share/dh-rust/bin/cargo-auto-test portablemc 5.0.6 --all-targets
Features: test-name=librust-portablemc-dev:default
Depends:
 ca-certificates,
 dh-rust,
 librust-mockito-1+default-dev (>= 1.7.2-~~),
 librust-portablemc-dev,
 librust-tempfile-3+default-dev (>= 3.19.1-~~),
 rustc (>= 1.88),
Restrictions: allow-stderr

# Smoke test of the installed CLI, without network access.
Test-Command: portablemc --help && portablemc --version
Depends: portablemc
Restrictions: superficial

# Python bindings test suite against the installed package, without network
# access, for every supported Python version.
Test-Command: cp -r portablemc-py/tests "$AUTOPKGTEST_TMP" && cd "$AUTOPKGTEST_TMP" && for py in $(py3versions -s); do echo "Testing with $py:"; $py -m pytest -p no:cacheprovider -m "not network" tests || exit 1; done
Depends:
 python3-all,
 python3-portablemc,
 python3-pytest,
Restrictions: allow-stderr
