From 2ee8fc9e77a315ef70b93c3ad045d0f5e17951c1 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 09:30:32 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 1 - EMPTY | 1 - tests/sanity | 30 ++++++++++++++++++++++++++++++ tests/tests.yml | 12 ++++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) delete mode 100644 EMPTY create mode 100755 tests/sanity create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index c5b6097..7542712 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -SOURCES/aspell-0.60.6.1.tar.gz /aspell-0.60.6.1.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tests/sanity b/tests/sanity new file mode 100755 index 0000000..85e7453 --- /dev/null +++ b/tests/sanity @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..df8f773 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,12 @@ +- hosts: localhost + roles: + - role: standard-test-beakerlib + tags: + - atomic + - classic + - container + tests: + - sanity + required_packages: + - aspell + - aspell-en