Replace whole repo with latest content from branch rhel-8.8.0
Content corresponds with RHEL dist-git commit b09f88c
This commit is contained in:
parent
7e31532c6a
commit
aa275fb893
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,2 +1,5 @@
|
|||||||
SOURCES/Babel-2.5.1.tar.gz
|
Babel-0.9.5.tar.gz
|
||||||
|
/Babel-0.9.6.tar.gz
|
||||||
|
/Babel-1.3.tar.gz
|
||||||
|
/Babel-2.3.4.tar.gz
|
||||||
/Babel-2.5.1.tar.gz
|
/Babel-2.5.1.tar.gz
|
||||||
|
8
tests/run-smoke-tests.sh
Executable file
8
tests/run-smoke-tests.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# smoke tests for the babel runtime
|
||||||
|
|
||||||
|
# bail out on any error
|
||||||
|
set -e
|
||||||
|
|
||||||
|
pybabel --list-locales
|
27
tests/run-unit-tests-on-installed-pkg.sh
Executable file
27
tests/run-unit-tests-on-installed-pkg.sh
Executable file
@ -0,0 +1,27 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Run Babel's unit tests with the installed packages.
|
||||||
|
|
||||||
|
# bail out if anything goes wrong
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# run in its own subdirectory without the whole sources underneath
|
||||||
|
mkdir testrun
|
||||||
|
|
||||||
|
# first, copy over unit tests and make them find the installed modules and
|
||||||
|
# files as if they were an exploded source tarball
|
||||||
|
cp -r source/tests testrun/
|
||||||
|
|
||||||
|
# test_frontend needs python3-freezegun
|
||||||
|
rm testrun/tests/messages/test_frontend.py
|
||||||
|
|
||||||
|
BABELDIR="$(python3 -c 'import os.path; import babel; print(os.path.dirname(babel.__file__))')"
|
||||||
|
ln -snf "$BABELDIR" testrun/babel
|
||||||
|
|
||||||
|
pushd testrun
|
||||||
|
|
||||||
|
# run the tests
|
||||||
|
export TZ=America/New_York
|
||||||
|
pytest-3
|
||||||
|
|
||||||
|
popd # testrun
|
23
tests/tests.yml
Normal file
23
tests/tests.yml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-source
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- atomic
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- babel
|
||||||
|
- coreutils
|
||||||
|
- python3-babel
|
||||||
|
- python3-pytest
|
||||||
|
tests:
|
||||||
|
- smoke:
|
||||||
|
dir: .
|
||||||
|
run: ./run-smoke-tests.sh
|
||||||
|
- verify:
|
||||||
|
dir: .
|
||||||
|
run: ./run-unit-tests-on-installed-pkg.sh
|
Loading…
Reference in New Issue
Block a user