re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-10 09:30:32 +02:00
parent 1f758c2566
commit 2ee8fc9e77
4 changed files with 42 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
SOURCES/aspell-0.60.6.1.tar.gz
/aspell-0.60.6.1.tar.gz

1
EMPTY
View File

@ -1 +0,0 @@

30
tests/sanity Executable file
View File

@ -0,0 +1,30 @@
#!/bin/bash
. /usr/share/beakerlib/beakerlib.sh
TEST="/AppStream/aspell/Sanity/aspell"
PACKAGES=${PACKAGES:-"aspell"}
REQUIRES=${REQUIRES:-"aspell-en"}
rlJournalStart
rlPhaseStartSetup
rlAssertRpm --all
rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
rlRun "pushd $TmpDir"
rlPhaseEnd
rlPhaseStartTest
rlRun "aspell --lang=en --dict-dir=$TmpDir create master test.rws <<< word" 0 "Creating word list"
rlRun "echo word | aspell --lang=en --dict-dir=$TmpDir --master=test.rws pipe > out" 0 "Checking known word"
rlAssertGrep "^*" "out"
rlRun "echo nothing | aspell --lang=en --dict-dir=$TmpDir --master=test.rws pipe > out" 0 "Checking unknown word"
rlAssertGrep "^#" "out"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $TmpDir" 0 "Removing tmp directory"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

12
tests/tests.yml Normal file
View File

@ -0,0 +1,12 @@
- hosts: localhost
roles:
- role: standard-test-beakerlib
tags:
- atomic
- classic
- container
tests:
- sanity
required_packages:
- aspell
- aspell-en