Add gating tests for RHEL 9
This commit is contained in:
parent
d9b38b9f9a
commit
425447b3fa
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-*
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
@ -1,6 +1,6 @@
|
|||||||
Name: po4a
|
Name: po4a
|
||||||
Version: 0.63
|
Version: 0.63
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A tool maintaining translations anywhere
|
Summary: A tool maintaining translations anywhere
|
||||||
License: GPL+
|
License: GPL+
|
||||||
URL: https://po4a.org/
|
URL: https://po4a.org/
|
||||||
@ -133,6 +133,11 @@ LANG=C.utf8
|
|||||||
%{_mandir}/*/man7/po4a.7*
|
%{_mandir}/*/man7/po4a.7*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 20 2021 Richard W.M. Jones <rjones@redhat.com> - 0.63-4
|
||||||
|
- Synchronize package with Fedora Rawhide
|
||||||
|
- Add gating tests for RHEL 9
|
||||||
|
resolves: rhbz#1990062
|
||||||
|
|
||||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.63-3
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.63-3
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
39
tests/basic-test.sh
Executable file
39
tests/basic-test.sh
Executable file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/bash -
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
po4a --help
|
||||||
|
|
||||||
|
# Write a test POD (Perl doc) file to the local directory.
|
||||||
|
cat >test.pod <<EOF
|
||||||
|
=head1 NAME
|
||||||
|
|
||||||
|
hello - hello world
|
||||||
|
|
||||||
|
=head1 DESCRIPTION
|
||||||
|
|
||||||
|
This is the hello world documentation
|
||||||
|
|
||||||
|
=head1 SEE ALSO
|
||||||
|
|
||||||
|
L<goodbye(1)>
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Try to compile it into a POT file using po4a-gettextize:
|
||||||
|
po4a-gettextize -f pod -M utf-8 -L utf-8 \
|
||||||
|
--package-name hello \
|
||||||
|
--package-version 1.0 \
|
||||||
|
--msgid-bugs-address noone@example.com \
|
||||||
|
--copyright-holder "Red Hat Inc." \
|
||||||
|
-p output.pot -m test.pod
|
||||||
|
|
||||||
|
cat output.pot
|
||||||
|
|
||||||
|
# Check for some expected strings in the output.
|
||||||
|
grep 'msgid "DESCRIPTION"' output.pot
|
||||||
|
|
||||||
|
grep 'msgid "This is the hello world documentation"' output.pot
|
||||||
|
|
||||||
|
# Clean up.
|
||||||
|
rm output.pot test.pod
|
13
tests/tests.yml
Normal file
13
tests/tests.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
required_packages:
|
||||||
|
- bash
|
||||||
|
- coreutils
|
||||||
|
- grep
|
||||||
|
tests:
|
||||||
|
- simple:
|
||||||
|
dir: .
|
||||||
|
run: ./basic-test.sh
|
Loading…
Reference in New Issue
Block a user