Compare commits
No commits in common. "c8s" and "c8" have entirely different histories.
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
/libvoikko-3.8.tar.gz
|
SOURCES/libvoikko-4.1.1.tar.gz
|
||||||
/libvoikko-4.1.1.tar.gz
|
|
||||||
|
|||||||
1
.libvoikko.metadata
Normal file
1
.libvoikko.metadata
Normal file
@ -0,0 +1 @@
|
|||||||
|
c59bbb4dd08d63bbc1cd0bd36408931b20220b4d SOURCES/libvoikko-4.1.1.tar.gz
|
||||||
@ -1,6 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-8
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
|
||||||
1
sources
1
sources
@ -1 +0,0 @@
|
|||||||
SHA512 (libvoikko-4.1.1.tar.gz) = eb8e32dc50e2baa4184a2030537c6fe86054053a75b543d38c7bbc0faf1fbea51020ccfd03d5de94b1d78a811a58eabefc7e87c3eae55f7b7b51409bd1dd8665
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
check_pkg() {
|
|
||||||
local pkg=$1
|
|
||||||
if rpm -q $pkg
|
|
||||||
then
|
|
||||||
echo "PASS"
|
|
||||||
else
|
|
||||||
echo "FAIL"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
check_pkg "python3-libvoikko"
|
|
||||||
check_pkg "libvoikko"
|
|
||||||
check_pkg "malaga-suomi-voikko"
|
|
||||||
|
|
||||||
python3 test_libvoikko.py
|
|
||||||
|
|
||||||
if [ $? == 0 ]
|
|
||||||
then
|
|
||||||
echo "PASS"
|
|
||||||
else
|
|
||||||
echo "FAIL"
|
|
||||||
fi
|
|
||||||
|
|
||||||
@ -1,22 +0,0 @@
|
|||||||
import sys
|
|
||||||
import libvoikko
|
|
||||||
|
|
||||||
FAILED_COUNT = 0
|
|
||||||
|
|
||||||
def spellcheck(word):
|
|
||||||
v = libvoikko.Voikko('fi')
|
|
||||||
return v.spell(word)
|
|
||||||
|
|
||||||
if not spellcheck('kisssa'):
|
|
||||||
print("PASS")
|
|
||||||
else:
|
|
||||||
FAILED_COUNT += 1
|
|
||||||
print("FAIL")
|
|
||||||
|
|
||||||
if spellcheck('hei'):
|
|
||||||
print("PASS")
|
|
||||||
else:
|
|
||||||
FAILED_COUNT += 1
|
|
||||||
print("FAIL")
|
|
||||||
|
|
||||||
sys.exit(FAILED_COUNT)
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
- hosts: localhost
|
|
||||||
roles:
|
|
||||||
- role: standard-test-basic
|
|
||||||
tags:
|
|
||||||
- classic
|
|
||||||
required_packages:
|
|
||||||
- python3-libvoikko
|
|
||||||
- malaga-suomi-voikko
|
|
||||||
tests:
|
|
||||||
- simple:
|
|
||||||
dir: scripts
|
|
||||||
run: bash run.sh
|
|
||||||
Loading…
Reference in New Issue
Block a user