enable execution of pty tests in mock

This commit is contained in:
Lukáš Zaoral 2023-09-19 17:16:03 +02:00
parent 225f16ca87
commit 69e3b6da41
No known key found for this signature in database
GPG Key ID: 39157506DD67752D

View File

@ -17,8 +17,13 @@ Conflicts: pdksh
Requires: coreutils, diffutils
BuildRequires: gcc
BuildRequires: bison
# regression test suite uses 'ps' from procps
# regression test suite uses 'ps' from procps, 'script' from util-linux and
# 'tput' from ncurses
BuildRequires: ncurses
BuildRequires: procps
BuildRequires: util-linux
Requires(post): grep, coreutils, systemd
Requires(postun): sed
@ -63,7 +68,8 @@ touch %{buildroot}%{_bindir}/rksh
touch %{buildroot}%{_mandir}/man1/rksh.1.gz
%check
bin/package test
# script is needed for pty tests in mock
script -q -e -c "bin/package test"
%post
for s in /bin/ksh /bin/rksh /usr/bin/ksh /usr/bin/rksh