Compare commits

...

2 Commits

Author SHA1 Message Date
Richard W.M. Jones
b27432ddc9 OCaml 5.2.0 ppc64le fix 2024-06-19 16:46:34 +01:00
Richard W.M. Jones
be0afda1af Add RHEL gating test 2024-06-19 09:26:45 +01:00
4 changed files with 42 additions and 1 deletions

6
gating.yaml Executable file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-*
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}

View File

@ -12,7 +12,7 @@ ExcludeArch: %{ix86}
Name: ocaml-gettext
Version: 0.4.2
Release: 20%{?dist}
Release: 21%{?dist}
Summary: OCaml library for i18n
License: LGPL-2.1-or-later with OCaml-LGPL-linking-exception
@ -154,6 +154,9 @@ cat .ofiles-gettext-stub-devel >> .ofiles-gettext-devel
%changelog
* Wed Jun 19 2024 Richard W.M. Jones <rjones@redhat.com> - 0.4.2-21
- OCaml 5.2.0 ppc64le fix
* Wed May 29 2024 Richard W.M. Jones <rjones@redhat.com> - 0.4.2-20
- OCaml 5.2.0 for Fedora 41

19
tests/basic-test.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash -
set -e
set -x
# Compile trivial gettext program.
cat <<EOF > gettexttest.ml
module Gettext = Gettext.Program (
struct
let textdomain = "test"
let codeset = None
let dir = None
let dependencies = []
end
) (GettextStub.Native) ;;
open Gettext ;;
print_endline (s_ "Hello world")
EOF
ocamlfind ocamlopt -package gettext,gettext-stub gettexttest.ml -linkpkg -o gettexttest
./gettexttest

13
tests/tests.yml Executable file
View File

@ -0,0 +1,13 @@
- hosts: localhost
roles:
- role: standard-test-basic
tags:
- classic
required_packages:
- ocaml
- ocaml-findlib
- ocaml-gettext-devel
tests:
- simple:
dir: .
run: ./basic-test.sh