From 3f4c6fabcd9e8b75bced7cfc3be1457276fcee0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Sat, 20 Oct 2007 21:39:13 +0000 Subject: [PATCH] - make test for tcl Changed files: tcl.spec -> 1.121 --- tcl.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tcl.spec b/tcl.spec index ee4ea22..8855957 100644 --- a/tcl.spec +++ b/tcl.spec @@ -1,3 +1,4 @@ +%bcond_without tests Summary: Tool Command Language embeddable scripting language, with shared libraries Summary(fr.UTF-8): Tool Command Language, langage de script avec bibliothèques partagées Summary(pl.UTF-8): Tool Command Language - język skryptowy z bibliotekami dynamicznymi @@ -129,6 +130,15 @@ sed -i -e "s/^CFLAGS_OPTIMIZE.*/CFLAGS_OPTIMIZE=%{rpmcflags} -D__NO_STRING_INLIN sed -i -e "s#%{_builddir}/%{name}%{version}%{rel}/unix#%{_libdir}#; \ s#%{_builddir}/%{name}%{version}%{rel}#%{_includedir}/tcl-private#" tclConfig.sh +%if %{with tests} +%{__make} test 2>&1 | tee make-test.log +FAILED=$(grep 'Files with failing tests:' make-test.log | sed -e 's#Files with failing tests: ##g' | sort | xargs) +if [ -n "$FAILED" -a "$FAILED" != "httpold.test" ]; then + echo "Files with failing tests: $FAILED" + exit 1 +fi +%endif + %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_prefix},%{_mandir}/man1} -- 2.44.0