Run a smoke test on CI
Unify the test suite between Fedora and CentOS Stream. This has been cherry-picked from c10s branch.
This commit is contained in:
parent
190cdfa5c6
commit
f20db6945a
2 changed files with 16 additions and 0 deletions
13
tests/smoke/runtest.sh
Normal file
13
tests/smoke/runtest.sh
Normal 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,6 +25,9 @@
|
|||
- 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue