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