Add CI test
Resolves: rhbz#2008783
This commit is contained in:
parent
7044272db2
commit
e7757d5f48
12
tests/basic/test.py
Normal file
12
tests/basic/test.py
Normal 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
12
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user