Compare commits
No commits in common. "c8-beta" and "c8s" have entirely different histories.
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,2 +1,2 @@
|
|||||||
SOURCES/UCD.zip
|
/UCD.zip
|
||||||
SOURCES/Unihan.zip
|
/Unihan.zip
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
8daffb1dc3c4789d2587939bbc87e78d14dcee49 SOURCES/UCD.zip
|
|
||||||
3a142b3fb4d1b99fd851cd1741d05567b950fc03 SOURCES/Unihan.zip
|
|
6
gating.yaml
Normal file
6
gating.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- rhel-8
|
||||||
|
decision_context: osci_compose_gate
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SHA512 (UCD.zip) = 954a499ff072727c8778e711fb1753834adf09277c9e9a2592c02b59971860f9a407c7e9985ed1e6bdda7a3cf3b1cd6316599c4bffe8b0625413f874486830c1
|
||||||
|
SHA512 (Unihan.zip) = a045e79545f1ec3529a8556d41c73b20809979e002f98314068c6f91daa79abb2ab3ab383090651b55fb55e343d8fcf67bea822d93d6e3221a206d58ef9e3a7b
|
15
tests/parse/test.py
Normal file
15
tests/parse/test.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/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)
|
||||||
|
assert(codepoints > 32000)
|
13
tests/tests.yml
Normal file
13
tests/tests.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
required_packages:
|
||||||
|
- unicode-ucd
|
||||||
|
- python36
|
||||||
|
tests:
|
||||||
|
- parse:
|
||||||
|
run: python3 test.py
|
||||||
|
...
|
Loading…
Reference in New Issue
Block a user