From 73eb2de3a92023e6522ab9fb34617312553adbe5 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 19 Jun 2024 09:32:39 +0100 Subject: [PATCH] Add RHEL gating test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- gating.yaml | 6 ++++++ tests/basic-test.sh | 9 +++++++++ tests/tests.yml | 13 +++++++++++++ 3 files changed, 28 insertions(+) create mode 100755 gating.yaml create mode 100755 tests/basic-test.sh create mode 100755 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100755 index 0000000..2c7ed80 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-* +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/tests/basic-test.sh b/tests/basic-test.sh new file mode 100755 index 0000000..1f39c11 --- /dev/null +++ b/tests/basic-test.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100755 index 0000000..a6423db --- /dev/null +++ b/tests/tests.yml @@ -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