add gating and CI test
This commit is contained in:
parent
ead046ebef
commit
3e39c339eb
|
@ -0,0 +1,2 @@
|
||||||
|
3f2fb9c659269ed38ab9386787f5864340d95e89 UCD.zip
|
||||||
|
0cd0c360d75c722205756c2f640b70e693e483b6 Unihan.zip
|
|
@ -0,0 +1,6 @@
|
||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-9
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
codepoints = 0
|
||||||
|
|
||||||
|
file = '/usr/share/unicode/ucd/UnicodeData.txt'
|
||||||
|
|
||||||
|
with open(file, mode='rt', encoding='utf-8') as unicode_data:
|
||||||
|
for line in unicode_data.readlines():
|
||||||
|
codepoint_string, name, category = line.split(';')[:3]
|
||||||
|
codepoint = int(codepoint_string, 16)
|
||||||
|
char = chr(codepoint)
|
||||||
|
codepoints = codepoints + 1
|
||||||
|
|
||||||
|
print(codepoints)
|
||||||
|
# Unicode 13 has 33797
|
||||||
|
assert(codepoints > 33000)
|
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
required_packages:
|
||||||
|
- unicode-ucd
|
||||||
|
- python3
|
||||||
|
tests:
|
||||||
|
- parse:
|
||||||
|
run: python3 test.py
|
||||||
|
...
|
Loading…
Reference in New Issue