Add RHEL gating test
This commit is contained in:
parent
82503be5b6
commit
be0afda1af
6
gating.yaml
Executable file
6
gating.yaml
Executable file
@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-*
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
19
tests/basic-test.sh
Executable file
19
tests/basic-test.sh
Executable 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
13
tests/tests.yml
Executable 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
|
Loading…
Reference in New Issue
Block a user