Add CI test.

Resolves: rhbz#2011170
This commit is contained in:
Akira TAGOH 2021-10-06 17:14:17 +09:00
parent 17b4e60c6e
commit af447de795
3 changed files with 22 additions and 0 deletions

9
tests/basic/test.sh Executable file
View File

@ -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

2
tests/basic/utf8.txt Normal file
View File

@ -0,0 +1,2 @@
日本語

11
tests/tests.yml Normal file
View File

@ -0,0 +1,11 @@
- hosts: localhost
become: yes
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- uchardet
tests:
- basic:
run: ./test.sh