diff --git a/.gitignore b/.gitignore index 9bdc890..e70ba65 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/mwords.tar.Z +mwords.tar.Z diff --git a/tests/scripts/runtest.sh b/tests/scripts/runtest.sh new file mode 100755 index 0000000..804b4b6 --- /dev/null +++ b/tests/scripts/runtest.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Copyright (C) 2019 Karel Zak + +path=$(which look) +if [ ! -x "$path" ]; then + echo "look(1) not in $PATH" + exit 1 +fi + +NRES=$(look "gating" 2> /dev/null | wc -l) +if [ ! $NRES -gt 0 ]; then + echo "look(1) not found 'gating' word" + exit 1 +fi + +exit 0 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..23529f2 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,14 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - container + required_packages: + - util-linux + - words + - coreutils + tests: + - scripts: + dir: scripts + run: ./runtest.sh diff --git a/words.spec b/words.spec index 084b424..860ba82 100644 --- a/words.spec +++ b/words.spec @@ -1,7 +1,7 @@ Summary: A dictionary of English words for the /usr/share/dict directory Name: words Version: 3.0 -Release: 28%{?dist} +Release: 29%{?dist} License: Public Domain Group: System Environment/Libraries # Note that Moby Project officially does not exist any more. The most complete @@ -80,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/dict/words %changelog +* Thu Mar 07 2019 Karel Zak - 3.0-29 +- fix #1681063 - add gating test + * Fri Feb 09 2018 Fedora Release Engineering - 3.0-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild