Add basic smoke tests of packaging
Cherry-picked from c9s, adjusted to the STI tests layout.
This commit is contained in:
parent
39f9d5774b
commit
2269374547
13
tests/smoke/runtest.sh
Executable file
13
tests/smoke/runtest.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -eux
|
||||
|
||||
# Currently there is no easy way to see the versions of installed packages.
|
||||
# Let's list them to make sure we're testing against the correct package set.
|
||||
rpm -qa | sort
|
||||
python3 -c 'import packaging'
|
||||
python3 -c 'from packaging import version; version.Version("2.5.1rc2")'
|
||||
python3 -c 'from packaging import specifiers; specifiers.SpecifierSet("~=1.0")'
|
||||
python3 -c 'from packaging import markers; markers.Marker("python_version>'"'"'2'"'"'")'
|
||||
python3 -c 'from packaging import requirements; requirements.Requirement('"'"'name[foo]>=2,<3; python_version>"2.0"'"'"')'
|
||||
python3 -c 'from packaging import tags; tags.Tag("py39", "none", "any")'
|
||||
python3 -c 'from packaging.utils import canonicalize_name; canonicalize_name("Django_foobar")'
|
@ -25,9 +25,13 @@
|
||||
- rpm_generators_unit_tests:
|
||||
dir: python-rpm-generators
|
||||
run: ./tests/download_data_and_run_pytest.sh
|
||||
- smoke:
|
||||
dir: .
|
||||
run: ./smoke/runtest.sh
|
||||
required_packages:
|
||||
- fedpkg-minimal
|
||||
- mock
|
||||
- python3-packaging
|
||||
- python3-pip
|
||||
- python3-pytest
|
||||
- python3-pyyaml
|
||||
|
Loading…
Reference in New Issue
Block a user