diff --git a/tcsh.changes b/tcsh.changes index ebb42d8..6e5ad11 100644 --- a/tcsh.changes +++ b/tcsh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 30 13:15:39 UTC 2015 - werner@suse.de + +- Enable tcsh checks but be aware that this can not be done in parallel +- Backup tcsh-6.15.00-blanks.dif away before update a working copy + ------------------------------------------------------------------- Thu Jan 15 14:18:41 UTC 2015 - tchvatal@suse.com diff --git a/tcsh.spec b/tcsh.spec index f967b54..57cdf85 100644 --- a/tcsh.spec +++ b/tcsh.spec @@ -37,7 +37,9 @@ Patch8: tcsh-6.18.01-metakey.patch # PATCH-FIX-SUSE add history file locking (bsc#901076) Patch9: tcsh-6.18.00-history-file-locking.patch Patch10: tcsh-6.18.01-history-merge.dif +BuildRequires: autoconf BuildRequires: ncurses-devel +BuildRequires: screen Requires: gawk Requires: textutils Recommends: tcsh-lang = %{version} @@ -118,8 +120,31 @@ correction, a history mechanism, job control, and a C-like syntax. make %{?_smp_mflags} %check -# requires a working terminal on stdin -#make check %{?_smp_mflags} + SCREENDIR=$(mktemp -d ${PWD}/screen.XXXXXXXXXX) || exit 1 + SCREENRC=${SCREENDIR}/tcsh + TMPDIR=$(mktemp -d /tmp/tcsh.XXXXXXXXXX) || exit 1 + export SCREENRC SCREENDIR TMPDIR + exec 0< /dev/null + SCREENLOG=${SCREENDIR}/log + cat > $SCREENRC<<-EOF + deflogin off + logfile $SCREENLOG + logfile flush 1 + logtstamp off + log on + setsid on + scrollback 0 + silence on + utf8 on + EOF + > $SCREENLOG + tail -q -s 0.5 -f $SCREENLOG & pid=$! + env -i HOME=$HOME TERM=$TERM TMPDIR=$TMPDIR \ + SCREENRC=$SCREENRC SCREENDIR=$SCREENDIR \ + screen -L -D -m make check + sleep 1 + kill -TERM $pid + rm -rf $SCREENDIR $TMPDIR %install for nls in nls/*.cat ; do