Compare commits
No commits in common. "c8" and "c8s" have entirely different histories.
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/v1.6.2.tar.gz
|
/v1.6.2.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
6572d1459deafd358b886d4482c179b715bc92e8 SOURCES/v1.6.2.tar.gz
|
|
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}
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
|||||||
|
SHA512 (v1.6.2.tar.gz) = a23127f1271da95ac06a1fb2f57b659485e959567b61da05b2bb350684003a0fb7e882b5e524c465fd890f79f513ed03174f38611989a1c09081147c47d6da11
|
4
tests/scripts/data.txt
Normal file
4
tests/scripts/data.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Cloud
|
||||||
|
Linux
|
||||||
|
Fedora
|
||||||
|
Fedoraaa
|
59
tests/scripts/run_tests.sh
Executable file
59
tests/scripts/run_tests.sh
Executable 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
12
tests/tests.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user