Add CI test

Resolves: rhbz#2008783
This commit is contained in:
Akira TAGOH 2021-09-29 16:43:41 +09:00
parent 7044272db2
commit e7757d5f48
2 changed files with 24 additions and 0 deletions

12
tests/basic/test.py Normal file
View File

@ -0,0 +1,12 @@
#! /usr/bin/python3
import gi
gi.require_version('LangTag', '0.6')
from gi.repository import LangTag
tag = LangTag.Tag.new()
if not tag.parse("en-Latn-US"):
exit(1)
if tag.canonicalize() != 'en-US':
exit(1)

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
become: yes
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- liblangtag-gobject
- python3
tests:
- basic:
run: python3 ./test.py