Add RHEL gating test

Actually the test fails with:

gcc: fatal error: environment variable ‘RPM_ARCH’ not defined

I believe this is caused by the package notes implementation being
broken.  We'll need to fix that separately.
This commit is contained in:
Richard W.M. Jones 2024-06-19 09:32:39 +01:00
parent 27d6ac121c
commit 73eb2de3a9
3 changed files with 28 additions and 0 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}

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

@ -0,0 +1,9 @@
#!/bin/bash -
set -e
set -x
# Compile trivial tk program.
echo 'ignore (Tk.opentk ())' > tktest.ml
ocamlfind ocamlopt -package labltk tktest.ml -linkpkg -o tktest
# Unfortunately we can't run this as we won't have an X server available.
#./tktest

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-labltk-devel
tests:
- simple:
dir: .
run: ./basic-test.sh