From af447de795d33a506646206a42b541a44f95692a Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Wed, 6 Oct 2021 17:14:17 +0900 Subject: [PATCH] Add CI test. Resolves: rhbz#2011170 --- tests/basic/test.sh | 9 +++++++++ tests/basic/utf8.txt | 2 ++ tests/tests.yml | 11 +++++++++++ 3 files changed, 22 insertions(+) create mode 100755 tests/basic/test.sh create mode 100644 tests/basic/utf8.txt create mode 100644 tests/tests.yml 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..dc07c19 --- /dev/null +++ b/tests/basic/utf8.txt @@ -0,0 +1,2 @@ +日本語 + 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