From 44a4c7bbb20e7583c67f4eb708bc888991ef6357 Mon Sep 17 00:00:00 2001 From: Pooja Yadav Date: Wed, 19 Jun 2024 14:20:23 +0530 Subject: [PATCH] Resolves:RHELMISC-3924 - adding CI tests and gating configuration --- gating.yaml | 6 ++++++ tests/basic/test.sh | 9 +++++++++ tests/basic/utf8.txt | 1 + tests/tests.yml | 11 +++++++++++ 4 files changed, 27 insertions(+) create mode 100644 gating.yaml create mode 100755 tests/basic/test.sh create mode 100644 tests/basic/utf8.txt create mode 100644 tests/tests.yml diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..4ca9235 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-10 +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..1507538 --- /dev/null +++ b/tests/basic/test.sh @@ -0,0 +1,9 @@ +#! /bin/sh + +CWD=`dirname $0` +if test x`uchardet $CWD/../tests.yml` != 'xASCII'; then + exit 1 +fi +if test x`uchardet $CWD/utf8.txt` != 'xUTF-8'; then + exit 1 +fi diff --git a/tests/basic/utf8.txt b/tests/basic/utf8.txt new file mode 100644 index 0000000..c77dbef --- /dev/null +++ b/tests/basic/utf8.txt @@ -0,0 +1 @@ +日本語 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..f2ed0eb --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,11 @@ +- hosts: localhost + become: yes + tags: + - classic + roles: + - role: standard-test-basic + required_packages: + - uchardet + tests: + - basic: + run: ./test.sh