Always run basic tests
This commit is contained in:
parent
344ccd961e
commit
227c9af1a4
@ -61,10 +61,10 @@ install -Dpm 644 redefine_filedir \
|
|||||||
rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/{cowsay,cowthink}
|
rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/{cowsay,cowthink}
|
||||||
|
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
# For some tests involving non-ASCII filenames
|
# For some tests involving non-ASCII filenames
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
%if %{with tests}
|
||||||
# This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal)
|
# This stuff borrowed from dejagnu-1.4.4-17 (tests need a terminal)
|
||||||
tmpfile=$(mktemp)
|
tmpfile=$(mktemp)
|
||||||
screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile
|
screen -D -m sh -c '( make check ; echo $? ) >'$tmpfile
|
||||||
@ -72,6 +72,8 @@ cat $tmpfile
|
|||||||
result=$(tail -n 1 $tmpfile)
|
result=$(tail -n 1 $tmpfile)
|
||||||
rm -f $tmpfile
|
rm -f $tmpfile
|
||||||
exit $result
|
exit $result
|
||||||
|
%else
|
||||||
|
make -C completions check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user