Compare commits

...

No commits in common. "c8" and "c8s" have entirely different histories.
c8 ... c8s

8 changed files with 83 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/v1.6.2.tar.gz
/v1.6.2.tar.gz

View File

@ -1 +0,0 @@
6572d1459deafd358b886d4482c179b715bc92e8 SOURCES/v1.6.2.tar.gz

6
gating.yaml Normal file
View 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}

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (v1.6.2.tar.gz) = a23127f1271da95ac06a1fb2f57b659485e959567b61da05b2bb350684003a0fb7e882b5e524c465fd890f79f513ed03174f38611989a1c09081147c47d6da11

4
tests/scripts/data.txt Normal file
View File

@ -0,0 +1,4 @@
Cloud
Linux
Fedora
Fedoraaa

59
tests/scripts/run_tests.sh Executable file
View File

@ -0,0 +1,59 @@
#!/bin/bash
check_pkg() {
local pkg=$1
if rpm -q $pkg
then
echo "PASS"
else
echo "FAIL"
fi
}
check_dict() {
if [ -f "/usr/share/myspell/de_DE.dic" ]
then
echo "PASS"
else
echo "FAIL"
fi
}
check_misspelled_word() {
VAR1="Fedoraaa"
VAR2=$(hunspell -l data.txt)
if [ "$VAR1" = "$VAR2" ]; then
echo "PASS"
else
echo "FAIL"
fi
}
check_misspelled_line() {
VAR1="Fedoraaa"
VAR2=$(hunspell -L data.txt)
if [ "$VAR1" = "$VAR2" ]; then
echo "PASS"
else
echo "FAIL"
fi
}
check_correct_word() {
VAR1="Cloud\nLinux\nFedora"
VAR1=$(echo -e "$VAR1")
VAR2=$(hunspell -G data.txt)
if [ "$VAR1" = "$VAR2" ]; then
echo "PASS"
else
echo "FAIL"
fi
}
check_pkg "hunspell"
check_pkg "hunspell-de"
check_dict
check_misspelled_word
check_misspelled_line
check_correct_word

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
tags:
- classic
roles:
- role: standard-test-basic
required_packages:
- hunspell
- hunspell-de
tests:
- simple:
dir: scripts
run: ./run_tests.sh